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.frontend.yaml
101 lines (98 loc) · 2.37 KB
/
docker-compose.frontend.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
version: '3'
services:
fieldsight:
image: fieldsightdocker/fieldsight_web:0.0.9
restart: always
hostname: kobo
container_name: fieldsight_web
command: /bin/bash ./scripts/run_fieldsight.sh
volumes:
- ./log/fieldsight:/srv/logs/fieldsight
- ./.vols/static/fieldsight/:/usr/src/data/onadata/static/
- ./.vols/media/fieldsight/:/usr/src/data/media/
- ./fixes/gcloud/service_account.json:/usr/src/data/service_account.json
- ./sock/:/sock/
ports:
- 8001:8001
env_file:
- env.txt
- db.txt
depends_on:
- postgres
- mongo
- redis_main
networks:
fieldsight-network:
aliases:
- kobo
kpi:
image: fieldsightdocker/fieldsight-kpi:0.0.4
restart: on-failure
hostname: kpi
container_name: fieldsight_kpi
command: /bin/bash ./scripts/run_kpi.sh
env_file:
- env.txt
- db.txt
volumes:
- ./log/kpi:/srv/logs
- ./.vols/media/kpi/:/srv/src/kpi/media/
ports:
- 8000:8000
depends_on:
- postgres
- mongo
- redis_main
networks:
fieldsight-network:
aliases:
- kpi
enketo:
image: fieldsightdocker/fieldsight_enketo:0.0.4
restart: on-failure
container_name: fieldsight_enketo
command: /bin/bash ./run_enketo.sh
volumes:
- ./fixes/config.json:/srv/src/enketo_express/config/config.json
env_file:
- env.txt
- db.txt
ports:
- 8005:8005
depends_on:
- redis_main
- redis_cache
networks:
fieldsight-network:
aliases:
- enketo_express
nginx:
image: nginx:1.17.2-alpine
hostname: nginx
container_name: fieldsight_nginx
volumes:
- ./nginxlog/:/var/log/nginx/
- ./nginx/:/etc/nginx/conf.d/
- ./.vols/static/:/static
- ./.vols/media/:/media
- ./certbot/conf:/etc/letsencrypt/
- ./certbot/www:/var/www/certbot/
- ./sock/:/sock/
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
ports:
- 80:80
- 443:443
depends_on:
- enketo
- kpi
- fieldsight
networks:
fieldsight-network:
aliases:
- nginx
- fskpi.naxa.com.np
- fsenk.naxa.com.np
- fs.naxa.com.np
networks:
fieldsight-network:
driver: bridge