-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
45 lines (40 loc) · 1.32 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
services:
postgres:
image: docker.io/postgres:12
ports:
- "5432:5432"
command: ["postgres", "-c", "wal_level=logical"]
environment:
- POSTGRES_PASSWORD=password
volumes:
- ${PWD}/movies.sql:/docker-entrypoint-initdb.d/movies.sql
rpcn:
image: docker.redpanda.com/redpandadata/connect:4
command: ["run", "cdc.yaml"]
ports:
- "4195:4195"
volumes:
- ${PWD}/cdc.yaml:/cdc.yaml
debezium:
image: docker.io/debezium/server:2.7.1.Final
ports:
- "8080:8080"
links:
- "postgres:postgres"
- "rpcn:rpcn"
environment:
- DEBEZIUM_SINK_TYPE=http
- DEBEZIUM_SINK_HTTP_URL=http://rpcn:4195/cdc
- DEBEZIUM_SOURCE_CONNECTOR_CLASS=io.debezium.connector.postgresql.PostgresConnector
- DEBEZIUM_SOURCE_OFFSET_STORAGE_FILE_FILENAME=data/offsets.dat
- DEBEZIUM_SOURCE_OFFSET_FLUSH_INTERVAL_MS=0
- DEBEZIUM_SOURCE_DATABASE_HOSTNAME=postgres
- DEBEZIUM_SOURCE_DATABASE_PORT=5432
- DEBEZIUM_SOURCE_DATABASE_USER=postgres
- DEBEZIUM_SOURCE_DATABASE_PASSWORD=password
- DEBEZIUM_SOURCE_DATABASE_DBNAME=postgres
- DEBEZIUM_SOURCE_PLUGIN_NAME=pgoutput
- DEBEZIUM_SOURCE_TOPIC_PREFIX=movies
- DEBEZIUM_FORMAT_VALUE=json
- DEBEZIUM_FORMAT_KEY=json
- DEBEZIUM_FORMAT_HEADER=json