Skip to content

Commit

Permalink
improve startup, wait migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ettoreleandrotognoli committed Dec 10, 2024
1 parent d818edf commit 5a2f363
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions tools/docker/runtime.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ services:
environment:
<<: *common-environment
depends_on:
- db
db:
condition: service_started
migration:
condition: service_completed_successfully
deploy:
mode: replicated
replicas: 1
Expand All @@ -60,7 +63,12 @@ services:
environment:
<<: *common-environment
depends_on:
- login
db:
condition: service_started
migration:
condition: service_completed_successfully
login:
condition: service_started
deploy:
mode: replicated
replicas: 1
Expand All @@ -75,7 +83,12 @@ services:
environment:
<<: *common-environment
depends_on:
- char
db:
condition: service_started
migration:
condition: service_completed_successfully
char:
condition: service_started
deploy:
mode: replicated
replicas: 1
Expand Down

0 comments on commit 5a2f363

Please sign in to comment.