-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
65 lines (61 loc) · 1.9 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: "3.9"
services:
###
# reverse proxy
###
traefik:
image: traefik:v2.6.1
container_name: traefik
ports:
- '80:80'
- '443:443'
- '8080:8080'
volumes:
- ./certs/:/etc/certs/
- /var/run/docker.sock:/var/run/docker.sock
- ./configs/conf.yaml:/conf/conf.yaml
- ./configs/traefik.yaml:/etc/traefik/traefik.yaml
###
# iSantePlus Server
###
isanteplus:
container_name: isanteplus
hostname: isanteplus
image: ghcr.io/isanteplus/docker-isanteplus-server:v2.3.0
restart: unless-stopped
env_file:
- ./isanteplus.env
volumes:
- /openmrs/data
- ./custom_modules:/custom_modules
- ./dist:/openmrs/data/frontend
logging:
driver: "json-file"
options:
max-size: "10m"
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.isanteplus.rule=Host(`iplus3.openelis-global.org`) && PathPrefix(`/openmrs`)'
- 'traefik.http.routers.isanteplus.tls=true'
- 'traefik.http.routers.isanteplus.entrypoints=https'
# - 'traefik.http.routers.isanteplus.middlewares=isanteplus-stripprefix'
# - 'traefik.http.middlewares.isanteplus-stripprefix.stripprefix.prefixes=/openmrs'
isanteplus-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:
- ./mysql.cnf:/etc/mysql/conf.d/custom.cnf # mysql config preconfigured to allow binlog/debezium
- /var/lib/mysql
ports:
- "3306:3306"