fix: ensure worker services depend on healthy master service

This commit is contained in:
Marvin Zhang
2025-09-14 15:02:06 +08:00
parent 829fcac3ff
commit 437c30b699
3 changed files with 8 additions and 4 deletions

View File

@@ -50,7 +50,8 @@ services:
CRAWLAB_NODE_MASTER: "N"
CRAWLAB_MASTER_HOST: "master"
depends_on:
- master
master:
condition: service_healthy
env_file:
- .env.local

View File

@@ -18,7 +18,8 @@ services:
CRAWLAB_NODE_MASTER: "N"
CRAWLAB_MASTER_HOST: "master"
depends_on:
- master
master:
condition: service_healthy
mongo:
image: mongo:5

View File

@@ -31,7 +31,8 @@ services:
CRAWLAB_NODE_MASTER: "N"
CRAWLAB_MASTER_HOST: "master"
depends_on:
- master
master:
condition: service_healthy
env_file:
- .env
@@ -44,7 +45,8 @@ services:
CRAWLAB_NODE_MASTER: "N"
CRAWLAB_MASTER_HOST: "master"
depends_on:
- master
master:
condition: service_healthy
env_file:
- .env