Wait setup to complete before starting web and stator containers (#611)

This commit is contained in:
Humberto Rocha 2023-07-17 11:31:21 -04:00 committed by GitHub
parent 188e5a2446
commit d6cdcb1d83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -56,10 +56,16 @@ services:
start_period: 15s start_period: 15s
ports: ports:
- "8000:8000" - "8000:8000"
depends_on:
setup:
condition: service_completed_successfully
stator: stator:
<<: *takahe-common <<: *takahe-common
command: ["/takahe/manage.py", "runstator"] command: ["/takahe/manage.py", "runstator"]
depends_on:
setup:
condition: service_completed_successfully
setup: setup:
<<: *takahe-common <<: *takahe-common