new KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:7.4.0"))
.withNetwork(network)
.withNetworkAliases("kafka")
- .withListener(() -> "kafka:9092")
+ // .withListener(() -> "kafka:9092")
.withKraft()
.withLogConsumer(new Slf4jLogConsumer(log, true).withPrefix("KAFKA"));
.withCommand(
"--chat.backend.instance-id=backend-1",
"--chat.backend.services=kafka",
- "--chat.backend.kafka.bootstrap-servers=kafka:9102"
+ "--chat.backend.kafka.bootstrap-servers=kafka:9092"
)
.withLogConsumer(new Slf4jLogConsumer(log, true).withPrefix("BACKEND-1"));
.withCommand(
"--chat.backend.instance-id=backend-2",
"--chat.backend.services=kafka",
- "--chat.backend.kafka.bootstrap-servers=kafka:9102"
+ "--chat.backend.kafka.bootstrap-servers=kafka:9092"
)
.withLogConsumer(new Slf4jLogConsumer(log, true).withPrefix("BACKEND-2"));
.withCommand(
"--chat.backend.instance-id=backend-3",
"--chat.backend.services=kafka",
- "--chat.backend.kafka.bootstrap-servers=kafka:9102"
+ "--chat.backend.kafka.bootstrap-servers=kafka:9092"
)
.withLogConsumer(new Slf4jLogConsumer(log, true).withPrefix("BACKEND-3"));