From 4544b61e6f8de251b8de4e923c637ac9713608a8 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Wed, 25 Jul 2018 15:21:07 -0600 Subject: [PATCH] Added depends_on to docker-compose files --- docker-compose.dev.yml | 2 ++ docker-compose.yml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 852b8ca..4fb4198 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -5,6 +5,8 @@ services: build: context: . dockerfile: Dockerfile.dev + depends_on: + - database ports: - "8080:8080" - "8081:8081" diff --git a/docker-compose.yml b/docker-compose.yml index 316fd67..89273b9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,8 @@ services: web: image: "amikhalev/sprinklers3" build: . + depends_on: + - database ports: - "8080:8080" env_file: @@ -19,4 +21,4 @@ services: database: image: "postgres:11-alpine" environment: - - POSTGRES_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV \ No newline at end of file + - POSTGRES_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV