-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
202 lines (191 loc) · 5.44 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
name: rapidpro
services:
nginx:
image: nginx
volumes:
- "./nginx/default.conf:/etc/nginx/conf.d/default.conf"
ports:
- 80:80
postgres:
image: ghcr.io/baosystems/postgis:15-3.3 # see https://github.com/postgis/docker-postgis/issues/216
volumes:
- ./postgres/init_dbs.sql:/docker-entrypoint-initdb.d/dev_dbs.sql
- postgres:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: tembatemba
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
elastic:
image: elasticsearch:8.14.0
volumes:
- elastic:/usr/share/elasticsearch/data
ports:
- 9200:9200
environment:
discovery.type: single-node
xpack.security.enabled: false
ingest.geoip.downloader.enabled: false
logger.level: INFO
healthcheck:
test: curl -s http://localhost:9200 >/dev/null || exit 1
interval: 10s
timeout: 5s
redis:
image: redis:6.2-alpine
command: redis-server --save 60 1 --loglevel warning
volumes:
- redis:/data
ports:
- 6379:6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 2s
dynamo:
image: amazon/dynamodb-local
command: "-jar DynamoDBLocal.jar -sharedDb -port 6000"
volumes:
- dynamo:/home/dynamodblocal/data
ports:
- 6000:6000
healthcheck:
test: [ "CMD-SHELL", "curl -v http://dynamo:6000" ]
interval: 10s
timeout: 5s
restart: always
minio:
image: bitnami/minio:latest
ports:
- 9000:9000
- 9001:9001
volumes:
- minio:/data
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: tembatemba
MINIO_DEFAULT_BUCKETS: temba-default,temba-attachments:public,temba-sessions,temba-logs,temba-archives
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
rapidpro:
image: nyaruka/rapidpro:stable
build:
context: ./rapidpro/
args:
- RAPIDPRO_TAG=v10.0.1
command: ["webapp"]
depends_on:
postgres:
condition: service_healthy
elastic:
condition: service_healthy
redis:
condition: service_healthy
dynamo:
condition: service_healthy
minio:
condition: service_healthy
ports:
- 8000:8000
environment:
MAILROOM_URL: http://mailroom:8090
MAILROOM_AUTH_TOKEN: topsecret
healthcheck:
test: curl -s http://localhost:8000 >/dev/null || exit 1
interval: 15s
timeout: 5s
retries: 5
start_period: 20s
celery:
image: nyaruka/rapidpro:stable
build:
context: ./rapidpro/
args:
- RAPIDPRO_TAG=v10.0.0
command: ["celery"]
depends_on:
rapidpro:
condition: service_healthy
environment:
MAILROOM_URL: http://mailroom:8090
mailroom:
image: nyaruka/mailroom:stable
build:
context: https://github.com/nyaruka/mailroom.git#v10.0.0
dockerfile: Dockerfile
depends_on:
rapidpro:
condition: service_healthy
ports:
- 8090:8090
environment:
MAILROOM_ADDRESS: 0.0.0.0
MAILROOM_DB: postgres://temba:temba@postgres:5432/temba?sslmode=disable
MAILROOM_REDIS: redis://redis:6379/15
MAILROOM_ELASTIC: http://elastic:9200
MAILROOM_DOMAIN: ${MAILROOM_DOMAIN:-host.docker.internal}
MAILROOM_ATTACHMENT_DOMAIN: ${MAILROOM_ATTACHMENT_DOMAIN:-host.docker.internal}
MAILROOM_DISALLOWED_NETWORKS: 6.6.6.6
MAILROOM_AUTH_TOKEN: topsecret
MAILROOM_COURIER_AUTH_TOKEN: topsecret
MAILROOM_AWS_ACCESS_KEY_ID: root
MAILROOM_AWS_SECRET_ACCESS_KEY: tembatemba
MAILROOM_DYNAMO_ENDPOINT: http://dynamo:6000
MAILROOM_DYNAMO_TABLE_PREFIX: Temba
MAILROOM_S3_ENDPOINT: http://minio:9000
MAILROOM_S3_SESSIONS_BUCKET: temba-sessions
MAILROOM_S3_ATTACHMENTS_BUCKET: temba-attachments
MAILROOM_S3_MINIO: true
MAILROOM_LOG_LEVEL: info
courier:
image: nyaruka/courier:stable
build:
context: https://github.com/nyaruka/courier.git#v10.0.0
dockerfile: Dockerfile
depends_on:
rapidpro:
condition: service_healthy
ports:
- 8080:8080
environment:
COURIER_ADDRESS: 0.0.0.0
COURIER_DB: postgres://temba:temba@postgres:5432/temba?sslmode=disable
COURIER_REDIS: redis://redis:6379/15
COURIER_DOMAIN: ${COURIER_DOMAIN:-host.docker.internal}
COURIER_BASE_URL: ${COURIER_BASE_URL:-https://host.docker.internal}
COURIER_DISALLOWED_NETWORKS: 6.6.6.6
COURIER_AUTH_TOKEN: topsecret
COURIER_AWS_ACCESS_KEY_ID: root
COURIER_AWS_SECRET_ACCESS_KEY: tembatemba
COURIER_DYNAMO_ENDPOINT: http://dynamo:6000
COURIER_DYNAMO_TABLE_PREFIX: Temba
COURIER_S3_ENDPOINT: http://minio:9000
COURIER_S3_ATTACHMENTS_BUCKET: temba-attachments
COURIER_S3_MINIO: true
COURIER_LOG_LEVEL: info
indexer:
image: nyaruka/indexer:stable
build:
context: https://github.com/nyaruka/rp-indexer.git#v10.0.0
dockerfile: Dockerfile
depends_on:
rapidpro:
condition: service_healthy
environment:
INDEXER_DB: postgres://temba:temba@postgres:5432/temba?sslmode=disable
INDEXER_ELASTIC_URL: http://elastic:9200
INDEXER_LOG_LEVEL: info
volumes:
postgres:
driver: local
elastic:
driver: local
redis:
driver: local
dynamo:
driver: local
minio:
driver: local