-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
116 lines (109 loc) · 2.82 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
services:
app:
build:
context: .
dockerfile: Dockerfile
image: pombola
depends_on:
- db
- elasticsearch
- rabbitmq
volumes:
- ./data:/app-data
- .:/app
environment:
- DATABASE_URL=postgresql://pombola:pombola@db/pombola
- DATABASE_NAME=pombola
- POMBOLA_DATADIR=/app-data
- DJANGO_DEBUG=TRUE
- DJANGO_SECRET_KEY=not-secret-in-dev
- ELASTICSEARCH_URL=elasticsearch:9200
- GOOGLE_MAPS_GEOCODING_API_KEY=${GOOGLE_MAPS_GEOCODING_API_KEY}
- DJANGO_DEBUG_TOOLBAR
- GOOGLE_RECAPTCHA_SITE_KEY
- GOOGLE_RECAPTCHA_SECRET_KEY
- ENVIRONMENT=development
- SENTRY_DSN=https://[email protected]/5246237
- GOOGLE_ANALYTICS_ID=G-T25P07Y7G2
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq//
ports:
- "8000:8000"
command: bin/wait-for-deps.sh python manage.py runserver 0.0.0.0:8000
db:
build:
context: docker/db
image: postgres-9.6-postgis-2.3
environment:
- POSTGRES_USER=pombola
- POSTGRES_PASSWORD=pombola
- POSTGRES_DB=pombola
volumes:
- db-data:/var/lib/postgresql/data
ports:
- 5321:5432
elasticsearch:
image: elasticsearch:1
volumes:
- es-data:/usr/share/elasticsearch/data
environment:
- ES_MIN_MEM=2g
- ES_MAX_MEM=4g
ports:
- 9200
cerebro:
image: lmenezes/cerebro
ports:
- "8001:9000"
rabbitmq:
image: rabbitmq:3.7.28
volumes:
- rabbitmq-data:/var/lib/rabbitmq/
ports:
- 5672:5672
- 15672:15672
worker:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./data:/app-data
- .:/app
command: bin/wait-for-deps.sh celery -A Pombola worker
depends_on:
- db
- elasticsearch
- rabbitmq
environment:
- ENVIRONMENT=development
- DJANGO_DEBUG=TRUE
- DATABASE_URL=postgresql://pombola:pombola@db/pombola
- DJANGO_DEBUG=True
- DJANGO_SECRET_KEY=not-secret-in-dev
- ELASTICSEARCH_URL=elasticsearch:9200
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq//
beat:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./data:/app-data
- .:/app
- beat-data:/var/celerybeat
command: bin/wait-for-deps.sh celery -A pombola beat --pidfile= -s /var/celerybeat/celerybeat-schedule
depends_on:
- db
- elasticsearch
- rabbitmq
environment:
- ENVIRONMENT=development
- DJANGO_DEBUG=TRUE
- DATABASE_URL=postgresql://pombola:pombola@db/pombola
- DJANGO_DEBUG=True
- DJANGO_SECRET_KEY=not-secret-in-dev
- ELASTICSEARCH_URL=elasticsearch:9200
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq//
volumes:
db-data:
es-data:
rabbitmq-data:
beat-data: