-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (43 loc) · 935 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (43 loc) · 935 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
48
49
version: '3'
volumes:
pg_data:
static_value:
media_value:
services:
db:
image: postgres:13.10
container_name: db
env_file: .env
volumes:
- pg_data:/var/lib/postgresql/data
backend:
image: lunaatik/hakaton:latest
container_name: backend
restart: always
volumes:
- static_value:/app/static/
- media_value:/app/media/
depends_on:
- db
env_file: .env
frontend:
image: lunaatik/front_hakaton:latest
container_name: frontend
volumes:
- ./frontend/:/app/result_build/
depends_on:
- backend
nginx:
image: nginx:1.21.3
container_name: nginx
ports:
- 8000:80
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- static_value:/var/html/static/
- media_value:/var/html/media/
- ./frontend/dist:/usr/share/nginx/html/
depends_on:
- backend
- frontend
restart: always