-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (46 loc) · 1.79 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
version: '3.8'
services:
isanteplus:
restart: unless-stopped
image: ghcr.io/isanteplus/docker-isanteplus-server:latest
container_name: isanteplus
hostname: isanteplus
ports:
- "${ISANTEPLUS_PORT}:8080"
healthcheck:
test: "exit 0"
environment:
OMRS_JAVA_MEMORY_OPTS: -Xmx2048m -Xms1024m -XX:NewSize=128m
OMRS_CONFIG_CONNECTION_SERVER: isanteplus-mysql
OMRS_CONFIG_CREATE_DATABASE_USER: 'false'
OMRS_CONFIG_CREATE_TABLES: 'false'
OMRS_CONFIG_ADD_DEMO_DATA: 'false'
OMRS_CONFIG_CONNECTION_URL: jdbc:mysql://isanteplus-mysql:3306/openmrs?autoReconnect=true
OMRS_CONFIG_HAS_CURRENT_OPENMRS_DATABASE: 'true'
OMRS_JAVA_SERVER_OPTS: -Dfile.encoding=UTF-8 -server -Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -Djava.awt.headlesslib=true
OMRS_CONFIG_CONNECTION_USERNAME: mysqluser
OMRS_CONFIG_CONNECTION_PASSWORD: mysqlpw
volumes:
- openmrs-data:/openmrs/data
isanteplus-mysql:
image: ghcr.io/isanteplus/docker-isanteplus-db:latest
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --sql_mode=""
restart: unless-stopped
container_name: isanteplus-mysql
hostname: isanteplus-mysql
ports:
- "${MYSQL_PORT}:3306"
healthcheck:
test: "exit 0"
environment:
- MYSQL_DATABASE=openmrs
- MYSQL_ROOT_PASSWORD=debezium
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
- MYSQL_ROOT_HOST=% # Allow docker containers to connect to mysql
volumes:
- ./resources/mysql.cnf:/etc/mysql/conf.d/custom.cnf # mysql config preconfigured to allow binlog/debezium
- mysql-data:/var/lib/mysql
volumes:
openmrs-data:
mysql-data: