1- version : ' 2.1'
21services :
3- zookeeper :
4- image : quay.io/debezium/zookeeper:${DEBEZIUM_VERSION}
5- ports :
6- - 2181:2181
7- - 2888:2888
8- - 3888:3888
92 kafka :
103 image : quay.io/debezium/kafka:${DEBEZIUM_VERSION}
114 ports :
12- - 9092:9092
13- links :
14- - zookeeper
5+ - 9092:9092
6+ - 9093:9093
157 environment :
16- - ZOOKEEPER_CONNECT=zookeeper:2181
17- # For local development of auditlog-enricher
18- # - ADVERTISED_HOST_NAME=192.168.1.6
19- - KAFKA_GROUP_MIN_SESSION_TIMEOUT_MS=250
8+ - CLUSTER_ID=oh-sxaDRTcyAr6pFRbXyzA
9+ - NODE_ID=1
10+ - NODE_ROLE=combined
11+ - KAFKA_CONTROLLER_QUORUM_VOTERS=1@kafka:9093
12+ - KAFKA_LISTENERS=PLAINTEXT://kafka:9092,CONTROLLER://kafka:9093
13+ - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
14+ # For local development of auditlog-enricher
15+ # - ADVERTISED_HOST_NAME=192.168.1.6
16+ - KAFKA_GROUP_MIN_SESSION_TIMEOUT_MS=250
17+
2018 vegetables-db :
2119 image : quay.io/debezium/example-postgres:${DEBEZIUM_VERSION}
2220 ports :
@@ -25,11 +23,12 @@ services:
2523 - POSTGRES_USER=postgresuser
2624 - POSTGRES_PASSWORD=postgrespw
2725 - POSTGRES_DB=vegetablesdb
26+
2827 connect :
2928 image : quay.io/debezium/connect:${DEBEZIUM_VERSION}
3029 ports :
3130 - 8083:8083
32- links :
31+ depends_on :
3332 - kafka
3433 - vegetables-db
3534 environment :
@@ -48,7 +47,7 @@ services:
4847 dockerfile : src/main/docker/Dockerfile.jvm
4948 ports :
5049 - 8080:8080
51- links :
50+ depends_on :
5251 - vegetables-db
5352 environment :
5453 - QUARKUS_DATASOURCE_URL=jdbc:postgresql://vegetables-db:5432/vegetablesdb?currentSchema=inventory
@@ -63,7 +62,7 @@ services:
6362 dockerfile : src/main/docker/Dockerfile.jvm
6463 ports :
6564 - 8081:8080
66- links :
65+ depends_on :
6766 - kafka
6867 environment :
6968 - QUARKUS_KAFKA_STREAMS_BOOTSTRAP_SERVERS=kafka:9092
@@ -75,7 +74,7 @@ services:
7574 dockerfile : src/main/docker/Dockerfile.jvm
7675 ports :
7776 - 8085:8080
78- links :
77+ depends_on :
7978 - kafka
8079 environment :
8180 - MP_MESSAGING_INCOMING_VEGETABLES_BOOTSTRAP_SERVERS=kafka:9092
0 commit comments