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