-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (48 loc) · 1.75 KB
/
docker-compose.yaml
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:
mysql:
image: ghcr.io/isanteplus/docker-isanteplus-db:latest
build:
context: ./
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --sql_mode=""
restart: unless-stopped
container_name: isanteplus-mysql
hostname: isanteplus-mysql
ports:
- "3306: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
- /var/lib/mysql
isanteplus:
restart: unless-stopped
image: ghcr.io/isanteplus/docker-isanteplus-server:latest
container_name: isanteplus
hostname: isanteplus
ports:
- "8080: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: 'true'
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
JPDA_ADDRESS: 0.0.0.0:8000
JPDA_TRANSPORT: dt_socket
OMRS_DEV_DEBUG_PORT: 8000
volumes:
- /openmrs/data