Browse Source

Added depends_on to docker-compose files

update-deps
Alex Mikhalev 7 years ago
parent
commit
4544b61e6f
  1. 2
      docker-compose.dev.yml
  2. 4
      docker-compose.yml

2
docker-compose.dev.yml

@ -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"

4
docker-compose.yml

@ -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

Loading…
Cancel
Save