This repository has been archived by the owner on Feb 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.backend.yaml
186 lines (179 loc) · 4.17 KB
/
docker-compose.backend.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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
version: '3'
services:
postgres:
image: mdillon/postgis:9.5
container_name: fieldsight_postgis
restart: always
volumes:
- ./.backup/postgres-data/:/var/lib/postgresql/data
- ./log/postgres:/srv/logs
ports:
- 5432:5432
env_file:
- db.txt
networks:
fieldsight-network:
aliases:
- postgres
memcached:
image: rbekker87/memcached:alpine
container_name: fieldsight_memcached
environment:
- MEMCACHED_MEMUSAGE=32
ports:
- 11211:11211
networks:
fieldsight-network:
aliases:
- memcached
mongo:
image: mongo:3.0
hostname: mongo
container_name: fieldsight_mongo
volumes:
- ./.backup/mongo-data:/data/db
- ./log/mongo:/srv/logs
environment:
- MONGO_DATA=/data/db
env_file:
- env.txt
- db.txt
ports:
- 27017:27017
restart: on-failure
networks:
fieldsight-network:
aliases:
- mongo
redis_main:
image: kiratalent/redis:3.2.10
restart: always
container_name: fieldsight_redis_main
volumes:
- ./.backup/redis_main_data:/data
- ./log/redis_main:/var/log/redis
ports:
- 6379:6379
sysctls:
- net.core.somaxconn=2048
networks:
fieldsight-network:
aliases:
- redis_main
redis_cache:
image: kiratalent/redis:3.2.10
restart: on-failure
volumes:
- ./.backup/redis_cache_data:/data
- ./log/redis_cache:/var/log/redis
container_name: fieldsight_redis_cache
ports:
- 6380:6380
sysctls:
- net.core.somaxconn=2048
networks:
fieldsight-network:
aliases:
- redis_cache
celery_fieldsight:
image: fieldsightdocker/fieldsight_web:0.0.9
restart: on-failure
container_name: celery_fieldsight
command: celery -A onadata worker -l Info -Q kobocat_queue
environment:
C_FORCE_ROOT: "yes"
env_file:
- env.txt
- db.txt
links:
- postgres
- redis_main
- memcached
depends_on:
- postgres
- redis_main
- memcached
volumes:
- ./.vols/media/fieldsight/:/usr/src/data/media/
- ./fixes/gcloud/service_account.json:/usr/src/data/service_account.json
networks:
fieldsight-network:
aliases:
- celery_fieldsight
celery_beat_fieldsight:
image: fieldsightdocker/fieldsight_web:0.0.9
restart: on-failure
container_name: celery_beat_fieldsight
command: celery -A onadata beat
environment:
C_FORCE_ROOT: "yes"
env_file:
- env.txt
- db.txt
links:
- postgres
- redis_main
- memcached
depends_on:
- postgres
- redis_main
- memcached
volumes:
- ./.vols/media/fieldsight/:/usr/src/data/media/
- ./fixes/gcloud/service_account.json:/usr/src/data/service_account.json
networks:
fieldsight-network:
aliases:
- celery_beat_fieldsight
worker_celery_beat:
image: fieldsightdocker/fieldsight_web:0.0.9
restart: on-failure
container_name: worker_celery_beat
command: celery -A onadata worker -l Info -Q beat
environment:
C_FORCE_ROOT: "yes"
env_file:
- env.txt
- db.txt
links:
- postgres
- redis_main
- memcached
depends_on:
- postgres
- redis_main
- memcached
volumes:
- ./.vols/media/fieldsight/:/usr/src/data/media/
- ./fixes/gcloud/service_account.json:/usr/src/data/service_account.json
networks:
fieldsight-network:
aliases:
- worker_celery_beat
celery_kpi:
image: fieldsightdocker/fieldsight-kpi:0.0.3
command: celery -A kobo worker -l Info
container_name: celery_kpi
environment:
C_FORCE_ROOT: "yes"
env_file:
- env.txt
- db.txt
links:
- postgres
- redis_main
- memcached
depends_on:
- postgres
- redis_main
- memcached
volumes:
- ./.vols/media/kpi/:/srv/src/kpi/media/
networks:
fieldsight-network:
aliases:
- celery_kpi
networks:
fieldsight-network:
external:
name: fieldsight-network