2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-02 19:17:33 +01:00

update kafka

This commit is contained in:
kev
2021-11-26 14:58:00 +08:00
parent 4961cd416d
commit 8a0b8f9cf5
7 changed files with 142 additions and 129 deletions

View File

@@ -3,7 +3,7 @@ version: "3.8"
services:
zookeeper:
image: zookeeper
image: zookeeper:3.7
ports:
- "2181:2181"
volumes:
@@ -12,14 +12,14 @@ services:
restart: unless-stopped
kafka:
image: wurstmeister/kafka
image: wurstmeister/kafka:2.12-2.5.0
ports:
- "9092:9092"
volumes:
- ./data/kafka:/kafka
- /var/run/docker.sock:/var/run/docker.sock
environment:
- KAFKA_ADVERTISED_HOST_NAME=10.0.0.13
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- JMX_PORT=9999
depends_on: