Last active
June 8, 2023 07:45
-
-
Save marekstachura/87fb545bec6bfca24a5f to your computer and use it in GitHub Desktop.
Kafka docker-compose.yml
This file contains hidden or 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
zookeeper: | |
image: marekstachura/zookeeper-docker | |
ports: | |
- 2181:2181 | |
environment: | |
ZOOKEEPER_MAXCLIENTCNXNS: 0 | |
kafka1: | |
image: wurstmeister/kafka:0.8.2.0 | |
ports: | |
- "9092:9092" | |
links: | |
- zookeeper:zk | |
environment: | |
KAFKA_ADVERTISED_HOST_NAME: 192.168.50.2 | |
KAFKA_DEFAULT_REPLICATION_FACTOR: 3 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
kafka2: | |
image: wurstmeister/kafka:0.8.2.0 | |
ports: | |
- "9093:9092" | |
links: | |
- zookeeper:zk | |
environment: | |
KAFKA_ADVERTISED_HOST_NAME: 192.168.50.2 | |
KAFKA_DEFAULT_REPLICATION_FACTOR: 3 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
kafka3: | |
image: wurstmeister/kafka:0.8.2.0 | |
ports: | |
- "9094:9092" | |
links: | |
- zookeeper:zk | |
environment: | |
KAFKA_ADVERTISED_HOST_NAME: 192.168.50.2 | |
KAFKA_DEFAULT_REPLICATION_FACTOR: 3 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
kafkarest: | |
image: marekstachura/kafka-rest-docker | |
ports: | |
- "8082:8082" | |
links: | |
- zookeeper | |
environment: | |
KAFKA_REST_CONSUMER_INSTANCE_TIMEOUT_MS: 300000 | |
KAFKA_REST_CONSUMER_REQUEST_TIMEOUT_MS: 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment