Skip to content

Commit

Permalink
fix worker depends_on
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BretFisher committed Aug 25, 2019
1 parent 1cea6e5 commit 41f2764
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:
context: ./worker
depends_on:
- "redis"
- "db"
networks:
- back-tier

Expand Down
3 changes: 3 additions & 0 deletions docker-stack-simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ services:
networks:
- frontend
- backend
depends_on:
- db
- redis
deploy:
mode: replicated
replicas: 1
Expand Down
3 changes: 3 additions & 0 deletions docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ services:
networks:
- frontend
- backend
depends_on:
- db
- redis
deploy:
mode: replicated
replicas: 1
Expand Down

0 comments on commit 41f2764

Please sign in to comment.