-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
77 lines (71 loc) · 1.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
version: '2'
services:
proxy:
image: linuxserver/letsencrypt
cap_add:
- NET_ADMIN
environment:
URL: ${URL}
VALIDATION: http
PGID: 1000
PUID: 1000
TZ: ${TZ}
EMAIL: ${EMAIL}
STAGING: ${STAGING}
EXTRA_DOMAINS: ${EXTRA_DOMAINS}
volumes:
- proxy:/config
- ./proxy/openmrs.conf:/config/nginx/site-confs/default
ports:
- 443:443
- 80:80 #optional
restart: unless-stopped
db:
image: mysql:5.6
command:
- --character-set-server=utf8
- --collation-server=utf8_general_ci
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
labels:
- backup_target
volumes:
- openmrs-database:/var/lib/mysql
restart: unless-stopped
refapp:
depends_on:
- db
build: ./refapp
ports:
- 8080:8080
links:
- db:database
environment:
DB_HOST: database
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_CREATE_TABLES: ${DB_CREATE_TABLES}
MODULE_WEB_ADMIN: ${MODULE_WEB_ADMIN}
OPENMRS_ADMIN_PASSWORD: ${OPENMRS_ADMIN_PASSWORD} # Not necessary in the load-db context
TZ: ${TZ}
volumes:
- document-upload:/usr/local/tomcat/.OpenMRS/Document
restart: unless-stopped
mobile-gateway:
build: ./mobile-gateway/
ports:
- 3000:3000
links:
- refapp:refapp
environment:
MOBILE_USERNAME: ${MOBILE_USERNAME}
MOBILE_PASSWORD: ${MOBILE_PASSWORD}
EMAIL_USERNAME: ${EMAIL_USERNAME}
EMAIL_PASSWORD: ${EMAIL_PASSWORD}
restart: unless-stopped
volumes:
openmrs-database:
document-upload:
proxy: