forked from PIH/docker-openmrs-server
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
80 lines (77 loc) · 2.73 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3.9'
services:
mysql:
image: ghcr.io/isanteplus/docker-isanteplus-db:v2.2.1
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --sql_mode=""
restart: unless-stopped
container_name: isanteplus-mysql
hostname: isanteplus-mysql
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:
- ./db/mysql.cnf:/etc/mysql/conf.d/custom.cnf # mysql config preconfigured to allow binlog/debezium
- /var/lib/mysql
# Note: Assumes image is built and tagged as `isanteplus/docker-isanteplus-server:ci`.
# Change to something like `:latest` for non-ci builds.
isanteplus:
restart: unless-stopped
image: ghcr.io/isanteplus/docker-isanteplus-server:ci
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: '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: root
OMRS_CONFIG_CONNECTION_PASSWORD: debezium
# JPDA_ADDRESS: 0.0.0.0:8000
# JPDA_TRANSPORT: dt_socket
# OMRS_DEV_DEBUG_PORT: 1044
volumes:
- /openmrs/data
- ./custom_modules:/custom_modules
# QA Framework
qa:
image: ghcr.io/isanteplus/isanteplus-qaframework:latest
container_name: qa
environment:
- ISANTEPLUS_URL=http://isanteplus:8080/openmrs
- ISANTEPLUS_USER=admin
- ISANTEPLUS_PW=Admin123
- REMOTE_URL_CHROME=http://chrome:4444/wd/hub
- TEST_OPTIONS="-Dcucumber.filter.tags=@login"
chrome:
image: selenium/standalone-chrome:latest
hostname: chrome
container_name: chrome
ports:
- "4444:4444"
- "7900:7900"
# Newman Tests
newman:
image: postman/newman
volumes:
- ./.postman:/.postman
entrypoint: newman run $POSTMAN_COLLECTION -e /.postman/env.json --insecure --timeout-request 20000 --delay-request 1000
wait:
container_name: wait
image: ghcr.io/i-tech-uw/wait-for-openmrs-action:v0.4.0
command:
- "http://isanteplus:8080/openmrs"
- "20"
- "10000"