This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
68 lines (67 loc) · 1.88 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
#
# 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:
rapidpro:
image: sdehaan/rapidpro:v4
depends_on:
- redis
- postgresql
ports:
- '8000: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
celery_base:
image: sdehaan/rapidpro:v4
depends_on:
- rapidpro
links:
- redis
- postgresql
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgresql/rapidpro
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY=super-secret-key
command: ["/venv/bin/celery", "--beat", "--app=temba", "worker", "--loglevel=INFO", "--queues=celery,flows"]
celery_msgs:
image: sdehaan/rapidpro:v4
depends_on:
- rapidpro
links:
- redis
- postgresql
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgresql/rapidpro
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY=super-secret-key
command: ["/venv/bin/celery", "--app=temba", "worker", "--loglevel=INFO", "--queues=msgs,handler"]
redis:
image: redis:alpine
postgresql:
image: mdillon/postgis:9.6
environment:
- POSTGRES_DB=rapidpro
courier:
image: praekeltfoundation/courier
depends_on:
- rapidpro
links:
- redis
- postgresql
environment:
- COURIER_DOMAIN=localhost
- COURIER_SPOOL_DIR=/tmp/courier/
- COURIER_DB=postgres://postgres:postgres@postgresql/rapidpro
- COURIER_REDIS=redis://redis:6379/8