-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (63 loc) · 1.28 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
62
63
version: '3'
volumes:
dbvolume:
services:
web:
build: .
container_name: django
env_file: .env
command: /usr/local/bin/gunicorn gpy.wsgi:application -w 2 -k gevent -b :8000 -b :80 --reload
environment:
- "DJANGO_SETTINGS_MODULE=gpy.settings"
env_file: .env
volumes:
- .:/code
ports:
- "8000:8000"
- "80:80"
depends_on:
- db
- celery
db:
image: postgres
container_name: db
env_file: .env
environment:
- "PGDATA=/var/lib/postgresql/data/pgdata"
ports:
- 5432:5432
volumes:
- dbvolume:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3-management
container_name: rabbit
env_file: .env
ports:
- "15672:15672"
- "5672:5672"
celery:
container_name: celery
env_file: .env
build:
context: .
dockerfile: Dockerfile.celery
depends_on:
- rabbitmq
- db
environment:
- "DJANGO_SETTINGS_MODULE=gpy.settings"
env_file: .env
volumes:
- .:/code
command: celery -A gpy.gpy_worker worker --loglevel=debug
flower:
container_name: flower
env_file: .env
build:
context: .
dockerfile: Dockerfile.flower
ports:
- "15555:5555"
depends_on:
- celery
- rabbitmq