-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
47 lines (45 loc) · 1.42 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
version: '2.1'
services:
mysql:
image: mysql:5.7
restart: always
ports:
- "3306:3306"
container_name: dbz-mysql
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
- ./dbdump:/docker-entrypoint-initdb.d
- ./data:/var/lib/mysql
openmrs:
restart: "always"
image: openmrs/openmrs-reference-application-distro:2.10.0
container_name: openmrs
depends_on:
- mysql
ports:
- "8099:8080"
environment:
DB_DATABASE: 'openmrs'
DB_HOST: dbz-mysql
DB_USERNAME: 'mysqluser'
DB_PASSWORD: 'mysqlpw'
#DB_CREATE_TABLES: 'true'
#DB_AUTO_UPDATE: 'true'
#MODULE_WEB_ADMIN: 'true'
dbz-camel:
image: camel-mysql-dbz/dbz-camel:${DEBEZIUM_VERSION}
container_name: cdc-pipeline
network_mode: host
build:
context: dbz-camel
depends_on:
- openmrs
environment:
- JAVA_MAIN_CLASS=org.openmrs.cdc.pipeline.Runner
- JAVA_OPTIONS=-Ddatabase.hostname=localhost -Ddatabase.port=3306 -Ddatabase.user=root -Ddatabase.password=debezium -Ddatabase.dbname=mysql -Ddatabase.schema=openmrs -Ddatabase.serverId=77 -Ddatabase.offsetStorage=/tmp/offset.dat -Ddatabase.databaseHistory=/tmp/dbhistory.dat