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
|
||||
depends_on:
|
||||
- "redis"
|
||||
- "db"
|
||||
networks:
|
||||
- back-tier
|
||||
|
||||
|
@ -58,6 +58,9 @@ services:
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
|
@ -56,6 +56,9 @@ services:
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
|
Loading…
Reference in New Issue
Block a user