-
Notifications
You must be signed in to change notification settings - Fork 1
/
rapidpro-compose.dev.yaml
65 lines (64 loc) · 1.68 KB
/
rapidpro-compose.dev.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '2'
services:
rapidpro:
build:
context: .
image: istresearch/rapidpro
depends_on:
- redis
- postgresql
ports:
- '8000:8000'
environment:
- DOMAIN_NAME=0.0.0.0
- DOMAIN_SCHEME=http
- ALLOWED_HOSTS=*
- 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
volumes:
- ./static/brands/pulse:/rapidpro/static/brands/pulse
- ./pulse_settings.dev.py:/rapidpro/temba/settings.py
celery:
image: rapidpro/rapidpro:v3.0.334
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,msgs,flows,handler"]
volumes:
- ./static/brands/pulse:/rapidpro/static/brands/pulse
- ./pulse_settings.dev.py:/rapidpro/temba/settings.py
redis:
image: redis:alpine
postgresql:
image: mdillon/postgis:9.6
environment:
- POSTGRES_DB=rapidpro
volumes:
- rapidpro:/var/lib/postgresql/data
ports:
- "5432:5432"
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
volumes:
rapidpro: