mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
41 lines
860 B
YAML
41 lines
860 B
YAML
|
version: "3.7"
|
||
|
|
||
|
services:
|
||
|
|
||
|
zookeeper:
|
||
|
image: zookeeper
|
||
|
ports:
|
||
|
- "2181:2181"
|
||
|
volumes:
|
||
|
- ./data/zookeeper/data:/data
|
||
|
- ./data/zookeeper/datalog:/datalog
|
||
|
restart: unless-stopped
|
||
|
|
||
|
kafka:
|
||
|
image: wurstmeister/kafka
|
||
|
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_ZOOKEEPER_CONNECT=zookeeper:2181
|
||
|
- JMX_PORT=9999
|
||
|
depends_on:
|
||
|
- zookeeper
|
||
|
restart: unless-stopped
|
||
|
|
||
|
cmak:
|
||
|
image: vimagick/cmak
|
||
|
ports:
|
||
|
- "9000:9000"
|
||
|
environment:
|
||
|
- ZK_HOSTS=zookeeper:2181
|
||
|
- KAFKA_MANAGER_AUTH_ENABLED=true
|
||
|
- KAFKA_MANAGER_USERNAME=admin
|
||
|
- KAFKA_MANAGER_PASSWORD=admin
|
||
|
depends_on:
|
||
|
- zookeeper
|
||
|
restart: unless-stopped
|