-
Notifications
You must be signed in to change notification settings - Fork 1
/
rapidpro-compose.prod.yaml
50 lines (50 loc) · 1.29 KB
/
rapidpro-compose.prod.yaml
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
version: '2'
services:
rapidpro:
image: rapidpro/rapidpro:master
depends_on:
- redis
- postgresql
ports:
- '8000:8000'
environment:
- DOMAIN_NAME=localhost
- ALLOWED_HOSTS=localhost
- DOMAIN_SCHEME=http
- 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=off
- MANAGEPY_MIGRATE=off
celery:
image: rapidpro/rapidpro:master
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: ["celery", "--beat", "--app=temba", "worker", "--loglevel=INFO", "--queues=celery,msgs,flows,handler"]
redis:
image: redis:alpine
postgresql:
image: mdillon/postgis:9.6
environment:
- POSTGRES_DB=rapidpro
mage:
image: rapidpro/mage
depends_on:
- rapidpro
links:
- redis
- postgresql
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgresql/rapidpro
- REDIS_URL=redis://redis/
- REDIS_DATABASE=8