-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
57 lines (53 loc) · 1.41 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
version: '3.3'
services:
backend:
image: unicef/rapidsms-website:latest
environment:
DJANGO_SETTINGS_MODULE: 'website.settings'
DATABASE_URL: psql://postgres:pass@db:5432/postgres
DEBUG: 'true'
CSRF_COOKIE_SECURE: ''
SECURE_SSL_REDIRECT: ''
SESSION_COOKIE_HTTPONLY: ''
SESSION_COOKIE_SECURE: ''
#PROJECT_ROOT: '/var/www/rapidpro_community_portal/'
COMPRESS_ENABLED: 'true'
SECRET_KEY: 'top-secret'
command: uwsgi
ports:
- "8000:8000"
volumes:
- "./src:/code"
- "./volumes/backend/var/rapidsms/:/var/rapidsms"
depends_on:
- db
- redis
container_name: rapidsms_website
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: rapidsms_website_proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
db:
image: postgres:12-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_DB: website_production
volumes:
- "./volumes/db2/data:/var/lib/postgresql/data"
container_name: rapidsms_website_db
redis:
image: redis
container_name: rapidsms_website_redis
hostname: redis
command: ["redis-server", "--appendonly", "yes"]