mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-15 19:05:09 +01:00
Merge 0ced0171a7
into d4d21963b5
This commit is contained in:
commit
dae1fb302f
1 changed files with 20 additions and 0 deletions
|
@ -59,6 +59,26 @@ services:
|
||||||
- proxy-tier
|
- proxy-tier
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
cron:
|
||||||
|
image: nextcloud:fpm
|
||||||
|
container_name: cron
|
||||||
|
links:
|
||||||
|
- db
|
||||||
|
volumes_from:
|
||||||
|
- app
|
||||||
|
user: www-data
|
||||||
|
entrypoint: |
|
||||||
|
bash -c 'bash -s <<EOF
|
||||||
|
trap "break;exit" SIGHUP SIGINT SIGTERM
|
||||||
|
while /bin/true; do
|
||||||
|
/usr/local/bin/php /var/www/html/cron.php
|
||||||
|
sleep 900
|
||||||
|
done
|
||||||
|
EOF'
|
||||||
|
networks:
|
||||||
|
- proxy-tier
|
||||||
|
restart: always
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
container_name: db
|
container_name: db
|
||||||
|
|
Loading…
Add table
Reference in a new issue