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.
This commit is contained in:
parent
1cea6e5bb0
commit
41f2764b94
@ -29,6 +29,7 @@ services:
|
|||||||
context: ./worker
|
context: ./worker
|
||||||
depends_on:
|
depends_on:
|
||||||
- "redis"
|
- "redis"
|
||||||
|
- "db"
|
||||||
networks:
|
networks:
|
||||||
- back-tier
|
- back-tier
|
||||||
|
|
||||||
|
@ -58,6 +58,9 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
- redis
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
@ -56,6 +56,9 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
- redis
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user