Created
November 16, 2018 15:21
-
-
Save hpgrahsl/29940a062b1dc23c2842882e7c76c2dd to your computer and use it in GitHub Desktop.
Debezium Kafka Connect MySQL Docker Compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
zookeeper: | |
image: debezium/zookeeper:0.8 | |
ports: | |
- 2181:2181 | |
- 2888:2888 | |
- 3888:3888 | |
kafka: | |
image: debezium/kafka:0.8 | |
ports: | |
- 9092:9092 | |
links: | |
- zookeeper | |
environment: | |
- ZOOKEEPER_CONNECT=zookeeper:2181 | |
mysql: | |
image: debezium/example-mysql:0.8 | |
ports: | |
- 3306:3306 | |
environment: | |
- MYSQL_ROOT_PASSWORD=debezium | |
- MYSQL_USER=mysqluser | |
- MYSQL_PASSWORD=mysqlpw | |
connect: | |
image: debezium/connect:0.8 | |
ports: | |
- 8083:8083 | |
volumes: | |
- <REPLACE_THIS_WITH_ABSOLUTE_PATH_TO_MONGODB_CONNECTOR>:/kafka/connect/kafka-connect-mongodb/ | |
links: | |
- kafka | |
- mysql | |
environment: | |
- BOOTSTRAP_SERVERS=kafka:9092 | |
- GROUP_ID=1 | |
- CONFIG_STORAGE_TOPIC=my_connect_configs | |
- OFFSET_STORAGE_TOPIC=my_connect_offsets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @hpgrahsl,
In connect container volume section, you have written
<REPLACE_THIS_WITH_ABSOLUTE_PATH_TO_MONGODB_CONNECTOR>
that contains mongodb_connector. Here we want to connect kafka to mysql. Would you please change it to the correct version?Thanks