docker compose -f docker-compose.yml up -d
curl --location 'http://localhost:8083/connectors' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"config": {
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
"database.dbname": "debezium",
"database.history.kafka.bootstrap.servers": "kafka:9092",
"database.history.kafka.topic": "schema-changes.projects",
"database.hostname": "postgres",
"database.password": "postgres",
"database.port": "5432",
"database.server.name": "postgres",
"database.user": "postgres",
"name": "debezium-connector",
"plugin.name": "pgoutput",
"table.include.list": "public.projects",
"tasks.max": "1",
"topic.creation.default.cleanup.policy": "delete",
"topic.creation.default.partitions": "1",
"topic.creation.default.replication.factor": "1",
"topic.creation.default.retention.ms": "604800000",
"topic.creation.enable": "true",
"topic.prefix": "postgres"
},
"name": "debezium-connector"
}
'