-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 1.08 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
version: '2.1'
services:
openmrs-referenceapplication-mysql:
image: mysql:5.6
command: "mysqld --character-set-server=utf8 --collation-server=utf8_general_ci"
environment:
- MYSQL_DATABASE=openmrs
- MYSQL_ROOT_PASSWORD=Admin123
- MYSQL_USER=openmrs
- MYSQL_PASSWORD=Admin123
healthcheck:
test: "exit 0"
ports:
- "3306:3306"
openmrs-referenceapplication:
image: openmrs/openmrs-reference-application-distro:qa
depends_on:
- openmrs-referenceapplication-mysql
ports:
- "8080:8080"
environment:
DB_DATABASE: openmrs
DB_HOST: openmrs-referenceapplication-mysql
DB_USERNAME: openmrs
DB_PASSWORD: Admin123
DB_CREATE_TABLES: 'true'
DB_AUTO_UPDATE: 'false'
MODULE_WEB_ADMIN: 'false'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/openmrs/"]
timeout: 20s
volumes:
- openmrs-referenceapplication-data:/usr/local/tomcat/.OpenMRS
- ./activemq-data:/usr/local/tomcat/.OpenMRS/activemq-data
volumes:
openmrs-referenceapplication-data: