-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
59 lines (59 loc) · 1.84 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
version: '2.1'
services:
postgres:
image: debezium/example-postgres:${DEBEZIUM_VERSION:-2.0.0.Final}
ports:
- 5432:5432
healthcheck:
test: "psql -U camel -d dbzdemo -c 'select version()'"
#test: "psql -U camel -d dbzdemo -c 'select custId from braindose.customer' "
interval: 10s
timeout: 20s
retries: 10
environment:
- POSTGRES_USER=camel
- POSTGRES_PASSWORD=camel
- PGPASSWORD=camel
- POSTGRES_DB=dbzdemo
- SCHEMA=braindose
volumes:
- ./db/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh
- /var/lib/postgresql/data
camel:
image: chengkuan/camel-dbz:latest
build:
context: camel
dockerfile: src/main/docker/Dockerfile.${QUARKUS_BUILD:-jvm}
environment:
- DB_NAME=dbzdemo
- DBZ_OFFSET_FILE=/deployments/data/offset-file-1.dat
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=camel
- DB_PASSWORD=camel
- DBZ_DBSERVERNAME=camel-dbz-connector
- DBZ_DBHISTORYFILE=/deployments/data/history-file-1.dat
- DBZ_SCHEMAINCLUDELIST=braindose
- DBZ_TABLEINCLUDELIST=braindose.orders
- OUTPUT_DIR=/tmp/dbzdemo
- OUTPUT_FILENAME=dbz-camel-order.output
depends_on:
postgres:
condition: service_healthy
volumes:
- /deployments/data
- /tmp/dbzdemo:/tmp/dbzdemo
simulator:
image: chengkuan/dbzdemo-order-simulator:latest
build:
context: simulator
dockerfile: src/main/docker/Dockerfile.${QUARKUS_BUILD:-jvm}
environment:
- QUARKUS_HIBERNATE-ORM_DATABASE_DEFAULT-SCHEMA=braindose
- QUARKUS_DATASOURCE_USERNAME=camel
- QUARKUS_DATASOURCE_PASSWORD=camel
- QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://postgres:5432/dbzdemo?currentSchema=braindose
- CRON_SCHEDULER_INTERVAL=5s
depends_on:
postgres:
condition: service_healthy