-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (44 loc) · 962 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
version: '3'
services:
db:
restart: always
image: postgres
ports:
- "5432:5432"
volumes:
- /var/lib/postgresql/data
backend:
restart: always
build: ./web/backend
env_file: .env
volumes:
- ./web/backend:/code
- backend:/www/static
ports:
- "8000:8000"
command: bash -c "python3 manage.py collectstatic --no-input && python3 manage.py makemigrations && python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000"
depends_on:
- db
frontend:
restart: always
build: ./web/frontend
volumes:
- ./web/frontend:/frontend
ports:
- "4200:4200"
command: bash -c "ng serve --host 0.0.0.0 --disable-host-check"
nginx:
restart: always
build: ./nginx
ports:
- "80:80"
- "443:443"
volumes:
- backend:/www/static
redis:
restart: always
image: redis:latest
volumes:
- /data
volumes:
backend: