-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
36 lines (34 loc) · 1006 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
mversion: '2.1'
services:
kenyaemr-demo-mysql:
restart: "always"
image: mysql:5.6
command: "mysqld --character-set-server=utf8 --collation-server=utf8_general_ci"
environment:
MYSQL_DATABASE: ${MYSQL_DB:-openmrs}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-test}
MYSQL_USER: ${MYSQL_USER:-test}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-test}
TZ: "Africa/Nairobi"
healthcheck:
test: "exit 0"
kenyaemr-demo:
restart: "always"
image: tomcat:9-jre8-openjdk
depends_on:
- kenyaemr-demo-mysql
ports:
- "8500:8443"
- "8501:8080"
environment:
DB_DATABASE: ${MYSQL_DB:-openmrs}
DB_HOST: kenyaemr-demo-mysql
DB_USERNAME: ${MYSQL_USER:-test}
DB_PASSWORD: ${MYSQL_PASSWORD:-test}
DB_CREATE_TABLES: 'true'
DB_AUTO_UPDATE: 'true'
MODULE_WEB_ADMIN: 'true'
TZ: "Africa/Nairobi"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8500/openmrs/"]
timeout: 20s