-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.13 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
version: '2'
services:
db:
# memory: 1024
image: postgres
web:
# memory: 1024
image: openchat_web
build:
context: ./
dockerfile: ./deploy/openchat/Dockerfile
command: gunicorn openchat.wsgi -b 0.0.0.0:8000 --log-level=debug -k 'eventlet'
volumes:
- .:/code
ports:
- "8000:8000"
links:
- rabbit
depends_on:
- db
- migration
environment:
- DOCKER_DEV=true
migration:
image: openchat_web
# memory: 1024
command: python manage.py migrate --no-input
volumes:
- .:/code
depends_on:
- db
environment:
- DOCKER_DEV=true
rabbit:
hostname: rabbit
image: rabbitmq:latest
# memory: 1024
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=mypass
ports:
- "5672:5672"
- "15672:15672" # here, we can access rabbitmq management plugin
nginx:
# memory: 1024
# image: openchat_nginx # ???
build:
context: ./
dockerfile: ./deploy/nginx/Dockerfile
volumes:
- .:/code
links:
- web
ports:
- "80:80"
- "443:443"