-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.production.yml
57 lines (52 loc) · 1.36 KB
/
docker-compose.production.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
version: "3"
services:
postgres:
build: containers/postgres/
memcached:
image: memcached:alpine
rabbitmq:
image: rabbitmq:alpine
environment:
- RABBITMQ_PASS=mypass
- C_FORCE_ROOT=true
ports:
- "5672:5672"
- "15672:15672"
worker:
build: containers/application/
command: celery -A cohen worker -l info
working_dir: /usr/src/app
volumes:
- ./cohen/:/usr/src/app
environment:
- C_FORCE_ROOT=true
- BROKER_URL=amqp://guest:guest@rabbit:5672//
env_file:
- .env
links:
- rabbitmq:rabbit
depends_on:
- rabbitmq
application:
command: gunicorn --bind "0.0.0.0:8000" --workers 4 --reload cohen.wsgi
working_dir: /usr/src/app
volumes:
- ./cohen/:/usr/src/app
environment:
- DJANGO_SETTINGS_MODULE=cohen.settings.production
env_file:
- .env
links:
- postgres
- worker
- memcached
depends_on:
- postgres
nginx:
image: nginx:alpine
volumes:
- ./containers/nginx/nginx.conf:/etc/nginx/conf.d/cohen.conf:ro
ports:
- "80:8080"
links:
- application