-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
54 lines (49 loc) · 1.4 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
version: '3.3'
services:
backend:
image: unicef/rapidpro-community-portal:latest
environment:
DATABASE_URL: psql://postgres:pass@db:5432/postgres
DEBUG: ''
CSRF_COOKIE_SECURE: ''
SECURE_SSL_REDIRECT: ''
SESSION_COOKIE_HTTPONLY: ''
SESSION_COOKIE_SECURE: ''
PROJECT_ROOT: '/var/www/rapidpro_community_portal/'
COMPRESS_ENABLED: 'true'
command: uwsgi
volumes:
- "./src:/code"
- "./volumes/backend/var/rapidpro_community_portal/:/var/www/rapidpro_community_portal"
depends_on:
- db
- redis
container_name: rapidpro_community_portal
labels:
- traefik.backend=backend
- traefik.frontend.rule=PathPrefix:/
- traefik.priority=1
- traefik.enable=true
- traefik.port=8000
proxy:
image: traefik:v1.7
command: --api --docker
ports:
- "8082:80"
- "8080:8080"
container_name: rapidpro_community_portal_proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
db:
image: postgres:12-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_DB: rapidpro_community_portal_production
volumes:
- "./volumes/db2/data:/var/lib/postgresql/data"
container_name: rapidpro_community_portal_db
redis:
image: redis
container_name: rapidpro_community_portal_redis
hostname: redis
command: ["redis-server", "--appendonly", "yes"]