-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (55 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
61 lines (55 loc) · 1.02 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
backend:
build: ./backend
container_name: backend
expose:
- "8000:8000"
volumes:
- ./backend:/code
environment:
- DATABASE_USER=postgres
- DATABASE_PASSWORD=emilgan12
- DATABASE_HOST=db
- DATABASE_PORT=5432
- DATABASE_NAME=hr-monitor
depends_on:
- db
networks:
- app-network
frontend:
build: ./frontend
container_name: frontend
expose:
- "80"
depends_on:
- backend
networks:
- app-network
db:
image: postgres:15.3
container_name: db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=emilgan12
- POSTGRES_DB=hr-monitor
expose:
- "5432"
volumes:
- db_data:/var/lib/postgresql/data
networks:
- app-network
nginx:
build: ./nginx
container_name: nginx
ports:
- "80:80"
depends_on:
- frontend
- backend
networks:
- app-network
volumes:
db_data:
networks:
app-network:
driver: bridge