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:
Bret Fisher 2019-08-25 16:50:48 -04:00
parent 1cea6e5bb0
commit 41f2764b94
3 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,7 @@ services:
context: ./worker context: ./worker
depends_on: depends_on:
- "redis" - "redis"
- "db"
networks: networks:
- back-tier - back-tier

View File

@ -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

View File

@ -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