Kafka Transactional Sample
- Added transactional and some more required properties - Setting read_commited in consumer - Added license and author tag - Added more fleshed out readme - Added alternate failure and removed unique index - Update spring boot starter parent to 2.1.0.BUILD-SNAPSHOT
This commit is contained in:
committed by
Soby Chacko
parent
e927b01bec
commit
2460ff21f7
30
transaction-kafka-samples/docker-compose.yml
Normal file
30
transaction-kafka-samples/docker-compose.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
version: '3'
|
||||
volumes:
|
||||
data-volume: {}
|
||||
services:
|
||||
mysql:
|
||||
image: mariadb
|
||||
ports:
|
||||
- "3306:3306"
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: pwd
|
||||
MYSQL_DATABASE: sample_mysql_db
|
||||
volumes:
|
||||
- data-volume:/var/lib/mysql
|
||||
kafka:
|
||||
image: wurstmeister/kafka
|
||||
container_name: kafka-jdbc-txn-source
|
||||
ports:
|
||||
- "9092:9092"
|
||||
environment:
|
||||
- KAFKA_ADVERTISED_HOST_NAME=127.0.0.1
|
||||
- KAFKA_ADVERTISED_PORT=9092
|
||||
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
|
||||
depends_on:
|
||||
- zookeeper
|
||||
zookeeper:
|
||||
image: wurstmeister/zookeeper
|
||||
ports:
|
||||
- "2181:2181"
|
||||
environment:
|
||||
- KAFKA_ADVERTISED_HOST_NAME=zookeeper
|
||||
Reference in New Issue
Block a user