Skip to content

Commit 52adcf2

Browse files
committed
fix worker depends_on
There was inconsistency in the worker compose yaml for depends_on. The worker requires both db and redis, and in the default docker-compose.yml it was missing db, causing worker to crash on `docker-compose up`. In two other compose files for stacks, where depends_on was used for other services, I added it for the worker to match.
1 parent b1bb8d2 commit 52adcf2

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ services:
2929
context: ./worker
3030
depends_on:
3131
- "redis"
32+
- "db"
3233
networks:
3334
- back-tier
3435

docker-stack-simple.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ services:
5858
networks:
5959
- frontend
6060
- backend
61+
depends_on:
62+
- db
63+
- redis
6164
deploy:
6265
mode: replicated
6366
replicas: 1

docker-stack.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ services:
5656
networks:
5757
- frontend
5858
- backend
59+
depends_on:
60+
- db
61+
- redis
5962
deploy:
6063
mode: replicated
6164
replicas: 1

0 commit comments

Comments
 (0)