1
1
version : " 3.8"
2
2
services :
3
3
postgres_source :
4
- build : postgres
5
- image : " kennychenfight/postgres:11-logical"
4
+ build :
5
+ context : postgres
6
+ dockerfile : ${PG_VERSION}/Dockerfile
7
+ image : " kennychenfight/postgres:${PG_VERSION}-logical"
6
8
container_name : " postgres_source"
7
9
ports :
8
10
- " 5432:5432"
@@ -13,7 +15,10 @@ services:
13
15
- ./postgres:/pgc
14
16
15
17
postgres_sink :
16
- image : " kennychenfight/postgres:11-logical"
18
+ build :
19
+ context : postgres
20
+ dockerfile : ${PG_VERSION}/Dockerfile
21
+ image : " kennychenfight/postgres:${PG_VERSION}-logical"
17
22
container_name : " postgres_sink"
18
23
ports :
19
24
- " 5433:5432"
@@ -28,8 +33,8 @@ services:
28
33
container_name : pulsar
29
34
command : ["bin/pulsar", "standalone"]
30
35
ports :
31
- - 6650:6650
32
- - 8080:8080
36
+ - " 6650:6650"
37
+ - " 8080:8080"
33
38
34
39
pulsar-ui :
35
40
image : apachepulsar/pulsar-manager:v0.2.0
@@ -45,36 +50,42 @@ services:
45
50
- ./pulsar/application.properties:/pulsar-manager/pulsar-manager/application.properties
46
51
47
52
pg2pulsar :
48
- image : rueian/pgcapture:v0.0.40
53
+ image : rueian/pgcapture:latest
49
54
container_name : " pg2pulsar"
50
- command : [ "pg2pulsar", "--PGConnURL=postgres://postgres@postgres_source:5432/postgres?sslmode=disable", "--PGReplURL=postgres://postgres@postgres_source:5432/postgres?sslmode=disable&replication=database", "--PulsarURL=pulsar://pulsar:6650", "--PulsarTopic=persistent://public/pgcapture/postgres"]
55
+ command :
56
+ - " pg2pulsar"
57
+ - " --PGConnURL=postgres://postgres@postgres_source:5432/postgres?sslmode=disable"
58
+ - " --PGReplURL=postgres://postgres@postgres_source:5432/postgres?sslmode=disable&replication=database"
59
+ - " --PulsarURL=pulsar://pulsar:6650"
60
+ - " --PulsarTopic=persistent://public/pgcapture/postgres"
61
+ - " --DecodePlugin=$DECODE_PLUGIN"
51
62
52
63
pulsar2pg :
53
- image : rueian/pgcapture:v0.0.40
64
+ image : rueian/pgcapture:latest
54
65
container_name : " pulsar2pg"
55
66
command : [ "pulsar2pg", "--PGConnURL=postgres://postgres@postgres_sink:5432/postgres?sslmode=disable", "--PulsarURL=pulsar://pulsar:6650", "--PulsarTopic=persistent://public/pgcapture/postgres" ]
56
67
57
68
gateway :
58
- image : rueian/pgcapture:v0.0.40
69
+ image : rueian/pgcapture:latest
59
70
container_name : " gateway"
60
71
ports :
61
72
- 10001:10001
62
73
command : gateway --ControllerAddr=controller:10000 --ResolverConfig='{"postgres_cdc":{"PulsarURL":"pulsar://pulsar:6650","PulsarTopic":"persistent://public/pgcapture/postgres","PulsarSubscription":"postgres_cdc","AgentURL":"agent:10000"}}'
63
74
64
75
controller :
65
- image : rueian/pgcapture:v0.0.40
76
+ image : rueian/pgcapture:latest
66
77
container_name : " controller"
67
78
command : [ "controller" ]
68
79
ports :
69
80
- 10000:10000
70
81
71
82
agent :
72
- image : rueian/pgcapture:v0.0.40
83
+ image : rueian/pgcapture:latest
73
84
container_name : " agent"
74
85
command : [ "agent" ]
75
86
76
87
configure :
77
- image : rueian/pgcapture:v0.0.40
88
+ image : rueian/pgcapture:latest
78
89
container_name : configure
79
90
command : ["configure", "--AgentAddr=agent:10000", "--AgentCommand=pulsar2pg", "--PGConnURL=postgres://postgres@postgres_sink:5432/postgres?sslmode=disable", "--PulsarURL=pulsar://pulsar:6650", "--PulsarTopic=persistent://public/pgcapture/postgres"]
80
91
0 commit comments