mirror of
https://github.com/nextcloud/docker.git
synced 2025-01-28 16:28:27 +01:00
examples: Have cron container depend on the app container
The cron container requires the files created by the app container, to start its cron tasks. There is a potential race condition here, where cron starts to run before the app container is even up, before the app container has populated `/var/www/html`. This is undesired and easily solved by making sure cron depends on the app container. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
parent
7a86f30009
commit
62ef4e961b
8 changed files with 8 additions and 0 deletions
|
@ -41,6 +41,7 @@ services:
|
|||
- nextcloud:/var/www/html:z
|
||||
entrypoint: /cron.sh
|
||||
depends_on:
|
||||
- app
|
||||
- db
|
||||
- redis
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ services:
|
|||
- nextcloud:/var/www/html:z
|
||||
entrypoint: /cron.sh
|
||||
depends_on:
|
||||
- app
|
||||
- db
|
||||
- redis
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ services:
|
|||
- nextcloud:/var/www/html:z
|
||||
entrypoint: /cron.sh
|
||||
depends_on:
|
||||
- app
|
||||
- db
|
||||
- redis
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@ services:
|
|||
- nextcloud:/var/www/html:z
|
||||
entrypoint: /cron.sh
|
||||
depends_on:
|
||||
- app
|
||||
- db
|
||||
- redis
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ services:
|
|||
- nextcloud:/var/www/html:z
|
||||
entrypoint: /cron.sh
|
||||
depends_on:
|
||||
- app
|
||||
- db
|
||||
- redis
|
||||
|
||||
|
|
|
@ -57,6 +57,7 @@ services:
|
|||
- nextcloud:/var/www/html:z
|
||||
entrypoint: /cron.sh
|
||||
depends_on:
|
||||
- app
|
||||
- db
|
||||
- redis
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ services:
|
|||
- nextcloud:/var/www/html:z
|
||||
entrypoint: /cron.sh
|
||||
depends_on:
|
||||
- app
|
||||
- db
|
||||
- redis
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ services:
|
|||
- nextcloud:/var/www/html:z
|
||||
entrypoint: /cron.sh
|
||||
depends_on:
|
||||
- app
|
||||
- db
|
||||
- redis
|
||||
|
||||
|
|
Loading…
Reference in a new issue