-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
45 lines (42 loc) · 1.43 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
version: '2.1'
services:
openmrs-referenceapplication-mysql:
restart: "always"
image: mysql:5.7
command: "mysqld --character-set-server=utf8 --collation-server=utf8_general_ci"
environment:
MYSQL_DATABASE: ${MYSQL_DB:-openmrs}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-Admin123}
MYSQL_USER: ${MYSQL_USER:-openmrs}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-Admin123}
ports:
- "3306:3306"
healthcheck:
test: "exit 0"
volumes:
- openmrs-referenceapplication-mysql-data:/var/lib/mysql
openmrs-referenceapplication:
restart: "always"
image: openmrs/openmrs-reference-application-distro:demo
depends_on:
- openmrs-referenceapplication-mysql
ports:
- "8080:8080"
environment:
DB_DATABASE: ${MYSQL_DB:-openmrs}
DB_HOST: openmrs-referenceapplication-mysql
DB_USERNAME: ${MYSQL_USER:-openmrs}
DB_PASSWORD: ${MYSQL_PASSWORD:-Admin123}
DB_CREATE_TABLES: 'true'
DB_AUTO_UPDATE: 'true'
MODULE_WEB_ADMIN: 'true'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/openmrs/"]
timeout: 20s
volumes:
- openmrs-referenceapplication-data:/usr/local/tomcat/.OpenMRS/
- /usr/local/tomcat/.OpenMRS/modules/ # do not store modules in data
- /usr/local/tomcat/.OpenMRS/owa/ # do not store owa in data
volumes:
openmrs-referenceapplication-mysql-data:
openmrs-referenceapplication-data: