Skip to content

Commit 0aa48bc

Browse files
committed
updated flask-app service configuration
1 parent fc5cb57 commit 0aa48bc

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

docker-compose.yaml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
11
services:
2-
flask-app-1:
2+
flask-app:
33
build:
44
context: ./app
55
dockerfile: Dockerfile
66
image: flask-app:1.0.0
7-
container_name: flask-container-1
8-
restart: always
9-
env_file:
10-
- ${ENV_FILE}
11-
depends_on:
12-
postgres:
13-
condition: service_healthy
14-
volumes:
15-
- ./:/app
16-
17-
flask-app-2:
18-
build:
19-
context: ./app
20-
dockerfile: Dockerfile
21-
image: flask-app:1.0.0
22-
container_name: flask-container-2
237
restart: always
248
env_file:
259
- ${ENV_FILE}
@@ -54,8 +38,7 @@ services:
5438
volumes:
5539
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
5640
depends_on:
57-
- flask-app-1
58-
- flask-app-2
41+
- flask-app
5942

6043
volumes:
6144
pgdata:

0 commit comments

Comments
 (0)