Run
# start zookeeper, kafka, and all 4 consoles
docker compose up
Open in browser:
Run
# start zookeeper, kafka, and all 4 consoles
docker compose up
Open in browser:
networks: | |
redpanda-kafka-network: | |
driver: bridge | |
attachable: true | |
services: | |
zookeeper: | |
container_name: zookeeper-all | |
image: confluentinc/cp-zookeeper:7.2.2 | |
restart: no | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
ZOOKEEPER_TICK_TIME: 2000 | |
ports: | |
- "2181:2181" | |
networks: | |
- redpanda-kafka-network | |
kafka: | |
container_name: kafka-all | |
image: confluentinc/cp-kafka:7.2.1.arm64 | |
restart: no | |
depends_on: | |
- zookeeper | |
ports: | |
- 9092:9092 | |
- 29092:29092 | |
- 9997:9997 | |
networks: | |
- redpanda-kafka-network | |
environment: | |
KAFKA_BROKER_ID: 1 | |
KAFKA_ZOOKEEPER_CONNECT: zookeeper-all:2181 | |
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-all:9092,PLAINTEXT_HOST://kafka-all:29092 | |
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT | |
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT | |
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | |
KAFKA_JMX_PORT: 9997 | |
KAFKA_JMX_OPTS: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=kafka0 -Dcom.sun.management.jmxremote.rmi.port=9997 | |
redpanda-console: | |
container_name: redpandadata-console | |
image: docker.redpanda.com/redpandadata/console:latest | |
restart: no | |
depends_on: | |
- kafka | |
ports: | |
- "8080:8080" | |
networks: | |
- redpanda-kafka-network | |
environment: | |
- KAFKA_BROKERS=kafka-all:9092 | |
- KAFKA_TLS_ENABLED=false | |
- KAFKA_SASL_ENABLED=false | |
- KAFKA_SASL_USERNAME= | |
- KAFKA_SASL_PASSWORD= | |
kafdrop: | |
container_name: kafdrop-console | |
image: obsidiandynamics/kafdrop | |
restart: no | |
depends_on: | |
- kafka | |
ports: | |
- "9000:9000" | |
networks: | |
- redpanda-kafka-network | |
environment: | |
- KAFKA_BROKERCONNECT=kafka-all:9092 | |
- SERVER_SERVLET_CONTEXTPATH=/ | |
- KAFKA_SASL_USERNAME= | |
- KAFKA_SASL_PASSWORD= | |
akhq: | |
container_name: akhq-console | |
image: tchiotludo/akhq | |
restart: no | |
depends_on: | |
- kafka | |
networks: | |
- redpanda-kafka-network | |
environment: | |
AKHQ_CONFIGURATION: | | |
akhq: | |
connections: | |
docker-kafka-server: | |
properties: | |
bootstrap.servers: "kafka-all:9092" | |
ports: | |
- 8880:8080 | |
kafka-ui: | |
container_name: kafka-ui | |
image: provectuslabs/kafka-ui:latest | |
restart: no | |
depends_on: | |
- kafka | |
networks: | |
- redpanda-kafka-network | |
ports: | |
- 8888:8080 | |
environment: | |
KAFKA_CLUSTERS_0_NAME: local | |
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka-all:9092 | |
KAFKA_CLUSTERS_0_METRICS_PORT: 9997 | |
DYNAMIC_CONFIG_ENABLED: 'true' # not necessary, added for tests | |
KAFKA_CLUSTERS_0_AUDIT_TOPICAUDITENABLED: 'true' | |
KAFKA_CLUSTERS_0_AUDIT_CONSOLEAUDITENABLED: 'true' |