-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 922 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 922 Bytes
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
version: '2'
services:
db:
restart: always
image: postgres
ports:
- "5432"
rabbitmq:
restart: always
image: rabbitmq
ports:
- "5672:5672"
celery_worker_default:
build: .
restart: always
environment:
- C_FORCE_ROOT=true
working_dir: /code/web
command: bash -c "sleep 3 && celery -A main worker -l info -E --autoscale 3,16 -Q default -n worker.%%"
volumes:
- .:/code
links:
- db
- rabbitmq
redis:
container_name: redis
image: redis:4.0.8-alpine
ports:
- "6379:6379"
volumes:
- ../data/redis:/data
restart: always
web:
restart: always
build: .
command: bash -c "python web/manage.py migrate && python web/manage.py runserver 0.0.0.0:8000"
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
- rabbitmq
- redis