-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 794 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (42 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
services:
db:
image: postgres:15.11-alpine3.21
container_name: postgres
env_file:
db_env.env
volumes:
- postgres_data:/var/lib/postgresql/data
restart:
always
networks:
- common_network
backend:
build: ./backend
container_name: flaskapp
env_file:
- backend_env.env
ports:
- "5000:5000" # first port is the outside port
depends_on:
- db
restart:
always
volumes:
- ./backend:/app
networks:
- common_network
frontend:
build: ./frontend
container_name: flaskapp_frontend
ports:
- "3000:3000"
restart: always
depends_on:
- backend
networks:
- common_network
volumes:
postgres_data:
networks:
common_network:
driver: bridge