-
-
Save akiasprin/93f17f5351f4f54ff0baeeea72c3d132 to your computer and use it in GitHub Desktop.
launch-your-mm2
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.0' | |
services: | |
zookeeper1: | |
image: zookeeper:latest | |
zookeeper2: | |
image: zookeeper:latest | |
kafka1: | |
image: wurstmeister/kafka | |
ports: | |
- 9092:9092 | |
environment: | |
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka1:9092 | |
KAFKA_CREATE_TOPICS: "online_user:3:1" | |
KAFKA_ZOOKEEPER_CONNECT: zookeeper1:2181 | |
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092 | |
KAFKA_JMX_OPTS: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=kafka1 -Dcom.sun.management.jmxremote.rmi.port=1099" | |
JMX_PORT: 1099 | |
volumes: | |
- ./kafka-logs1:/kafka | |
depends_on: | |
- zookeeper1 | |
kafka2: | |
image: wurstmeister/kafka | |
ports: | |
- 9093:9092 | |
environment: | |
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka2:9092 | |
KAFKA_CREATE_TOPICS: "online_user:3:1" | |
KAFKA_ZOOKEEPER_CONNECT: zookeeper2:2181 | |
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092 | |
KAFKA_JMX_OPTS: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=kafka2 -Dcom.sun.management.jmxremote.rmi.port=1099" | |
JMX_PORT: 1099 | |
volumes: | |
- ./kafka-logs2:/kafka | |
depends_on: | |
- zookeeper2 | |
cmak: | |
image: hlebalbau/kafka-manager | |
ports: | |
- "9000:9000" | |
environment: | |
ZK_HOSTS: zookeeper1:2181 | |
depends_on: | |
- zookeeper1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment