-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.local.yml
61 lines (60 loc) · 1.29 KB
/
docker-compose.local.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
version: '3'
services:
nginx:
image: nginx:latest
container_name: production_nginx
volumes:
- ./nginx-dev.conf:/etc/nginx/nginx.conf
ports:
- 8000:8000
links:
- web
- ui
- socket
redis:
image: redis
ports:
- 6379:6379
web:
image: modelchimp/modelchimp-server:latest
container_name: web
restart: always
command: ["bash", "./scripts/wait-for-postgres.sh", "db", "bash", "runserver.sh"]
ports:
- "8002:8002"
links:
- redis
- db
volumes:
- ./.env:/code/.env
socket:
image: modelchimp/modelchimp-server:latest
restart: always
command: ["daphne", "-b", "0.0.0.0", "-p", "8001", "settings.asgi:application"]
ports:
- "8001:8001"
links:
- redis
- db
volumes:
- ./.env:/code/.env
celery:
image: modelchimp/modelchimp-server:latest
command: bash ./scripts/wait-for-postgres.sh db celery -A settings worker -l info -B
links:
- redis
- db
volumes:
- ./.env:/code/.env
ui:
image: modelchimp/modelchimp-ui:latest
command: npm run start:prod
ports:
- 3000:3000
db:
image: postgres:10.6
restart: always
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- 5432:5432