-
-
Notifications
You must be signed in to change notification settings - Fork 219
/
docker-compose.yml
41 lines (36 loc) · 950 Bytes
/
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
version: '3.7'
# For more information on how to use this docker compose file see our docs page:
# https://docs.communityhealthtoolkit.org/apps/guides/hosting/self-hosting/
services:
medic-os:
container_name: medic-os
image: medicmobile/medic-os:cht-3.9.0-rc.2
volumes:
- medic-data:/srv
ports:
- "${CHT_HTTP:-80}:80"
- "${CHT_HTTPS:-443}:443"
working_dir: /srv
depends_on:
- haproxy
networks:
- medic-net
environment:
- DOCKER_NETWORK_NAME=haproxy
- DOCKER_COUCHDB_ADMIN_PASSWORD=${DOCKER_COUCHDB_ADMIN_PASSWORD:-password}
haproxy:
container_name: haproxy
image: medicmobile/haproxy:rc-1.17
volumes:
- medic-data:/srv
environment:
- COUCHDB_HOST=medic-os
- HA_PASSWORD=${DOCKER_COUCHDB_ADMIN_PASSWORD:-password}
networks:
- medic-net
volumes:
medic-data:
name: medic-data
networks:
medic-net:
name: medic-net