-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (47 loc) · 976 Bytes
/
docker-compose.yml
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
version: '3.8'
services:
postgres:
container_name: hackaton-postgres
image: postgres
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file: .env
expose:
- 5432
django:
container_name: hackaton-django
build: ./backend
command: gunicorn main.wsgi:application --bind 0.0.0.0:8000
volumes:
- ./backend:/usr/src/backend
- static:/usr/src/static
- media:/usr/src/media
- logs:/usr/src/logs
expose:
- 8000
env_file: .env
depends_on:
- postgres
angular:
container_name: hackaton-angular
build: ./frontend
volumes:
- frontend:/usr/src/frontend
nginx:
container_name: hackaton-nginx
build: ./nginx
ports:
- "80:80"
volumes:
- static:/usr/src/static
- media:/usr/src/media
- frontend:/usr/src/frontend
depends_on:
- angular
- django
volumes:
postgres_data:
static:
media:
logs:
frontend: