-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (56 loc) · 1.09 KB
/
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
53
54
55
56
57
58
59
60
61
62
version: '3.1'
services:
db:
container_name: db
image: postgres
ports:
- 5432:5432
restart: always
networks:
- network
volumes:
- ./data/db:/var/lib/postgresql/data
env_file:
- .build-env
redis:
container_name: redis
image: library/redis:5.0-alpine
ports:
- 6379:6379
restart: always
networks:
- network
volumes:
- redis:/data
env_file:
- .build-env
backend:
container_name: backend
ports:
- 8000:8000
build:
context: ./
dockerfile: Dockerfile
restart: always
networks:
- network
depends_on:
- redis
- db
volumes:
- ./web_platform:/usr/src/app
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py collectstatic --noinput && python manage.py runserver 0.0.0.0:8000"
env_file:
- .build-env
labels:
kompose.service.type: LoadBalancer
volumes:
db:
driver: local
redis:
driver: local
media:
driver: local
networks:
network:
driver: bridge