Use cron.sh for the example docker-compose.yml's

This commit is contained in:
Tilo Spannagel 2018-01-30 13:16:40 +01:00
parent 3747025dd6
commit 2e3645f853
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
4 changed files with 4 additions and 56 deletions

View File

@ -36,20 +36,7 @@ services:
restart: always
volumes:
- nextcloud:/var/www/html
user: www-data
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
while [ ! -f /var/www/html/config/config.php ]; do
sleep 1
done
while true; do
php -f /var/www/html/cron.php
sleep 15m
done
EOF'
entrypoint: /cron.sh
depends_on:
- db
- redis

View File

@ -44,20 +44,7 @@ services:
restart: always
volumes:
- nextcloud:/var/www/html
user: www-data
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
while [ ! -f /var/www/html/config/config.php ]; do
sleep 1
done
while true; do
php -f /var/www/html/cron.php
sleep 15m
done
EOF'
entrypoint: /cron.sh
depends_on:
- db
- redis

View File

@ -40,20 +40,7 @@ services:
restart: always
volumes:
- nextcloud:/var/www/html
user: www-data
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
while [ ! -f /var/www/html/config/config.php ]; do
sleep 1
done
while true; do
php -f /var/www/html/cron.php
sleep 15m
done
EOF'
entrypoint: /cron.sh
depends_on:
- db
- redis

View File

@ -49,20 +49,7 @@ services:
restart: always
volumes:
- nextcloud:/var/www/html
user: www-data
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
while [ ! -f /var/www/html/config/config.php ]; do
sleep 1
done
while true; do
php -f /var/www/html/cron.php
sleep 15m
done
EOF'
entrypoint: /cron.sh
depends_on:
- db
- redis