-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
135 lines (124 loc) · 2.71 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3.9'
services:
rapidpro-db:
container_name: rapidpro-db
image: postgis/postgis:14-3.3
ports:
- "5432:5432"
env_file:
- .env
volumes:
- database-data:/var/lib/postgresql/data/
restart: on-failure
rapidpro-redis:
container_name: rapidpro-redis
image: redis:6-bullseye
ports:
- "6379:6379"
env_file:
- .env
command: redis-server
restart: on-failure
rapidpro-temba:
container_name: rapidpro-temba
build:
context: .
dockerfile: temba.Dockerfile
env_file:
- .env
environment:
- "PYTHONUNBUFFERED=1"
- "LOG_LEVEL=warning"
restart: on-failure
ports:
- "80:80"
- "443:443"
depends_on:
- rapidpro-db
- rapidpro-redis
volumes:
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
# # TODO
# certbot:
# image: certbot/certbot:latest
# volumes:
# - ./certbot/www/:/var/www/certbot/:rw
# - ./certbot/conf/:/etc/letsencrypt/:rw
rapidpro-elastic:
container_name: rapidpro-elastic
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2-amd64
ports:
- "9200:9200"
- "9300:9300"
env_file:
- .env
environment:
- "logger.level=WARN"
- "discovery.type=single-node"
restart: on-failure
rapidpro-mailroom:
container_name: rapidpro-mailroom
build:
context: .
dockerfile: mailroom.Dockerfile
env_file:
- .env
environment:
- "LOG_LEVEL=warning"
restart: on-failure
ports:
- "8090:8090"
depends_on:
- rapidpro-db
- rapidpro-elastic
- rapidpro-redis
rapidpro-courier:
container_name: rapidpro-courier
build:
context: .
dockerfile: courier.Dockerfile
env_file:
- .env
environment:
- "LOG_LEVEL=warning"
restart: on-failure
ports:
- "8080:8080"
depends_on:
- rapidpro-db
- rapidpro-elastic
- rapidpro-redis
# # TODO
# rapidpro-archiver:
# container_name: rapidpro-archiver
# build:
# context: .
# dockerfile: archiver.Dockerfile
# env_file:
# - .env
# environment:
# - "LOG_LEVEL=info"
# restart: on-failure
# depends_on:
# - rapidpro-db
# - rapidpro-elastic
# - rapidpro-redis
# # TODO
# rapidpro-indexer:
# container_name: rapidpro-indexer
# build:
# context: .
# dockerfile: indexer.Dockerfile
# env_file:
# - .env
# environment:
# - "LOG_LEVEL=info"
# restart: on-failure
# depends_on:
# - rapidpro-db
# - rapidpro-elastic
# - rapidpro-redis
volumes:
database-data:
name: rapidpro-pgdata