forked from rapidpro/rapidpro-docker
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
122 lines (120 loc) · 3.22 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
117
118
119
120
121
122
#
# NOTE: This docker-compose is not used for building the rapidpro docker
# releases, it is a compose file for local development purposes.
#
version: '2'
services:
nginx:
image: nginx:latest
depends_on:
- rapidpro
- courier
links:
- rapidpro
- courier
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
rapidpro:
image: praekeltfoundation/rapidpro:latest
depends_on:
- redis
- postgresql
- courier
- mailroom
- elasticsearch
expose:
- '8000'
environment:
- DOMAIN_NAME=localhost
- ALLOWED_HOSTS=localhost
- TEMBA_HOST=localhost
- DJANGO_DEBUG=off
- DATABASE_URL=postgresql://postgres:postgres@postgresql/rapidpro
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY=super-secret-key
- MANAGEPY_COLLECTSTATIC=on
- MANAGEPY_COMPRESS=on
- MANAGEPY_INIT_DB=on
- MANAGEPY_MIGRATE=on
- MAILROOM_URL=http://mailroom:8090
- MAILROOM_AUTH_TOKEN=Gqcqvi2PGkoZMpQi
- ELASTICSEARCH_URL=http://elasticsearch:9200
celery:
image: praekeltfoundation/rapidpro:latest
depends_on:
- rapidpro
- mailroom
- elasticsearch
links:
- redis
- postgresql
- mailroom
- elasticsearch
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgresql/rapidpro
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY=super-secret-key
- MAILROOM_URL=http://mailroom:8090
- MAILROOM_AUTH_TOKEN=Gqcqvi2PGkoZMpQi
- ELASTICSEARCH_URL=http://elasticsearch:9200
command: ["/venv/bin/celery", "--beat", "--app=temba", "worker", "--loglevel=INFO", "--queues=celery"]
redis:
image: redis:alpine
postgresql:
image: mdillon/postgis:9.6
environment:
- POSTGRES_DB=rapidpro
courier:
image: praekeltfoundation/courier:latest
depends_on:
- postgresql
- redis
expose:
- '8080'
links:
- redis
- postgresql
environment:
- COURIER_DB=postgres://postgres:postgres@postgresql/rapidpro
- COURIER_REDIS=redis://redis:6379/0
- COURIER_DOMAIN=localhost
- COURIER_SPOOL_DIR=/home/courier/spool/persisted/
indexer:
image: praekeltfoundation/rp-indexer:latest
depends_on:
- postgresql
- elasticsearch
links:
- postgresql
- elasticsearch
environment:
- INDEXER_DB=postgresql://postgres:postgres@postgresql/rapidpro?sslmode=disable
- INDEXER_ELASTIC_URL=http://elasticsearch:9200
elasticsearch:
image: elasticsearch:6.4.0
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 9200:9200
volumes:
- 'es_data:/usr/share/elasticsearch/data'
mailroom:
image: praekeltfoundation/mailroom:2.0.9
depends_on:
- postgresql
- redis
links:
- postgresql
- redis
environment:
- MAILROOM_DOMAIN=mailroom
- MAILROOM_AUTH_TOKEN=Gqcqvi2PGkoZMpQi
- MAILROOM_ATTACHMENT_DOMAIN=mailroom
- MAILROOM_DB=postgres://postgres:postgres@postgresql/rapidpro?sslmode=disable
- MAILROOM_REDIS=redis://redis:6379/0
- MAILROOM_LOG_LEVEL=debug
command: ["mailroom", "--address", "0.0.0.0"]
volumes:
es_data: