1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/cmak/docker-compose.yml

43 lines
940 B
YAML
Raw Normal View History

2021-03-25 12:47:11 +02:00
version: "3.8"
2020-02-20 13:29:06 +02:00
services:
zookeeper:
2021-11-26 08:58:00 +02:00
image: zookeeper:3.7
2020-02-20 13:29:06 +02:00
ports:
- "2181:2181"
volumes:
- ./data/zookeeper/data:/data
- ./data/zookeeper/datalog:/datalog
restart: unless-stopped
kafka:
2021-11-26 09:02:17 +02:00
image: wurstmeister/kafka:2.13-2.7.1
2020-02-20 13:29:06 +02:00
ports:
- "9092:9092"
volumes:
- ./data/kafka:/kafka
environment:
- KAFKA_ADVERTISED_HOST_NAME=10.0.0.13
2021-11-26 08:58:00 +02:00
- KAFKA_ADVERTISED_PORT=9092
2020-02-20 13:29:06 +02:00
- 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
2021-03-25 12:47:11 +02:00
healthcheck:
test: curl -f http://127.0.0.1:9000/api/health || exit 1
2020-02-20 13:29:06 +02:00
restart: unless-stopped