From 41f2764b94b2c94041365f13f022603536a46e26 Mon Sep 17 00:00:00 2001 From: Bret Fisher Date: Sun, 25 Aug 2019 16:50:48 -0400 Subject: [PATCH] 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. --- docker-compose.yml | 1 + docker-stack-simple.yml | 3 +++ docker-stack.yml | 3 +++ 3 files changed, 7 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 8a18f9f..5417f7c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,6 +29,7 @@ services: context: ./worker depends_on: - "redis" + - "db" networks: - back-tier diff --git a/docker-stack-simple.yml b/docker-stack-simple.yml index b941140..8189386 100644 --- a/docker-stack-simple.yml +++ b/docker-stack-simple.yml @@ -58,6 +58,9 @@ services: networks: - frontend - backend + depends_on: + - db + - redis deploy: mode: replicated replicas: 1 diff --git a/docker-stack.yml b/docker-stack.yml index 02ff75e..c7ffa76 100644 --- a/docker-stack.yml +++ b/docker-stack.yml @@ -56,6 +56,9 @@ services: networks: - frontend - backend + depends_on: + - db + - redis deploy: mode: replicated replicas: 1