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