Added depends_on to docker-compose files
This commit is contained in:
parent
a1bd742b29
commit
4544b61e6f
@ -5,6 +5,8 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
depends_on:
|
||||
- database
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "8081:8081"
|
||||
|
@ -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
|
||||
- POSTGRES_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV
|
||||
|
Loading…
x
Reference in New Issue
Block a user