-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 1 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
version: '2'
volumes:
pgdata:
ipython:
services:
db:
image: postgres:9.6
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5543:5432"
redis:
image: redis
web:
build: .
env_file:
- environment
ports:
- "8080:8080"
volumes:
- .:/code
- ipython:/root/.ipython
command: python manage.py runserver
depends_on:
- db
- redis
- rabbitmq
celery:
build: .
env_file:
- environment
volumes_from:
- web
command: celery -A metadb.jobs:celery worker --loglevel=info
depends_on:
- redis
- rabbitmq
flower: # Django app to monitor Celery status
build: ./docker/flower/
env_file:
- environment
command: flower --address=0.0.0.0 --port=5555 --broker=redis://redis
ports:
- "5555:5555"
depends_on:
- celery
rabbitmq:
image: rabbitmq:3-management
hostname: metadb-rabbitmq
env_file:
- environment
ports:
- "15672:15672"