backend/kafka/docker-compose-kafka.yml
2024-12-06 14:12:28 +09:00

19 lines
441 B
YAML

version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
build:
context: .
dockerfile: ./Dockerfile-kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 10.0.1.20
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "cheonan-kt:1:1,cheonan-lg:1:1"
volumes:
- /var/run/docker_kafka.sock:/var/run/docker.sock