forked from banda-health/openmrs-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (36 loc) · 1.01 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
version: '3'
services:
openhmis:
container_name: openhmis_openmrs
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
environment:
- DB_NAME=openmrs_docker
- OPENMRS_MYSQL_HOST=openhmis_mysql
- OPENMRS_MYSQL_PORT=3306
# Uncomment to load demo data
#- DEMO_DATA=1
#- DB_USER=root
#- DB_PASS=test
depends_on:
- openhmis_mysql
links:
- openhmis_mysql:mysql
ports:
- 8080:8080
volumes:
- ./openmrs:/root/.OpenMRS
openhmis_mysql:
container_name: openhmis_mysql
image: mysql/mysql-server:5.6
environment:
- MYSQL_ROOT_PASSWORD=test
- MYSQL_ROOT_HOST=172.% # Allow docker contatiners to connect to mysql
ports:
- 3306:3306
volumes:
- openhmis_mysql_volume:/var/lib/mysql
volumes:
openhmis_mysql_volume: