0
0
Fork 0
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:
Olliver Schinagl 2023-05-29 10:24:00 +02:00
parent 7a86f30009
commit 62ef4e961b
No known key found for this signature in database
GPG key ID: 96E1A3A6C9044763
8 changed files with 8 additions and 0 deletions

View file

@ -41,6 +41,7 @@ services:
- nextcloud:/var/www/html:z
entrypoint: /cron.sh
depends_on:
- app
- db
- redis

View file

@ -52,6 +52,7 @@ services:
- nextcloud:/var/www/html:z
entrypoint: /cron.sh
depends_on:
- app
- db
- redis

View file

@ -36,6 +36,7 @@ services:
- nextcloud:/var/www/html:z
entrypoint: /cron.sh
depends_on:
- app
- db
- redis

View file

@ -47,6 +47,7 @@ services:
- nextcloud:/var/www/html:z
entrypoint: /cron.sh
depends_on:
- app
- db
- redis

View file

@ -45,6 +45,7 @@ services:
- nextcloud:/var/www/html:z
entrypoint: /cron.sh
depends_on:
- app
- db
- redis

View file

@ -57,6 +57,7 @@ services:
- nextcloud:/var/www/html:z
entrypoint: /cron.sh
depends_on:
- app
- db
- redis

View file

@ -40,6 +40,7 @@ services:
- nextcloud:/var/www/html:z
entrypoint: /cron.sh
depends_on:
- app
- db
- redis

View file

@ -52,6 +52,7 @@ services:
- nextcloud:/var/www/html:z
entrypoint: /cron.sh
depends_on:
- app
- db
- redis