阿里的binlog 增量订阅&消费组件

https://github.com/alibaba/canal

docker-compose.yml

version: ‘3.1’
services:
cc-alibaba-canal:
build:
context: ./
dockerfile: Dockerfile
container_name: alibaba-canal
privileged: true
environment:
– canal.auto.scan=true
– canal.destinations=test2
– canal.instance.master.address=192.168.126.21:3306
– canal.instance.dbUsername=canal2
– canal.instance.dbPassword=canal123!@#QWE
– canal.instance.connectionCharset=UTF-8
– canal.instance.tsdb.enable=true
– canal.instance.gtidon=false
hostname: 192.168.126.21
ports:
– “11110:11110”
– “11111:11111”
– “11112:11112”
– “9100:9100”
mem_limit: “4096m”
dockerfile
FROM canal/canal-server
账号设置:
CREATE USER canal2 IDENTIFIED BY ‘canal123!@#QWE’;
GRANT ALL PRIVILEGES ON *.* TO ‘canal2 ‘@’%’ WITH GRANT OPTION;
FLUSH PRIVILEGES;

By cc

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注