Added depends_on to docker-compose files

This commit is contained in:
Alex Mikhalev 2018-07-25 15:21:07 -06:00
parent a1bd742b29
commit 4544b61e6f
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,8 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile.dev dockerfile: Dockerfile.dev
depends_on:
- database
ports: ports:
- "8080:8080" - "8080:8080"
- "8081:8081" - "8081:8081"

View File

@ -3,6 +3,8 @@ services:
web: web:
image: "amikhalev/sprinklers3" image: "amikhalev/sprinklers3"
build: . build: .
depends_on:
- database
ports: ports:
- "8080:8080" - "8080:8080"
env_file: env_file:
@ -19,4 +21,4 @@ services:
database: database:
image: "postgres:11-alpine" image: "postgres:11-alpine"
environment: environment:
- POSTGRES_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV - POSTGRES_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV