Skip to content

Commit 6b7abcf

Browse files
authored
fix: Depends on healthy (#271)
1 parent a13ff5c commit 6b7abcf

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docker-compose.dev.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ services:
2323
volumes:
2424
- ./data/agent/deployments:/deployments
2525
depends_on:
26-
- hub
26+
hub:
27+
condition: service_healthy
2728
environment:
2829
- HUB_URL=ws://hub:8080/api/v1/ws
2930
- AUTH_TOKEN=

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ services:
2626
volumes:
2727
- ./deployments:/deployments
2828
depends_on: # Remove this if you are only deploying the agent on a host without the hub
29-
- hub
29+
hub:
30+
condition: service_healthy

0 commit comments

Comments
 (0)