-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 998 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '2'
networks:
promkafka:
services:
prom_kafka:
ports:
- 9399:9399
networks:
- promkafka
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/code
depends_on:
- kafka
environment:
PORT: "9399"
KAFKAHOSTS: "kafka:9092"
CONSUMERGROUPS: '{"test": ["test_cg"]}'
zookeeper:
image: jplock/zookeeper:3.4.6
ports:
- "2181"
networks:
- promkafka
kafka:
networks:
- promkafka
image: ches/kafka:0.10.1.0
depends_on:
- zookeeper
environment:
- KAFKA_ADVERTISED_HOST_NAME=kafka
- ZOOKEEPER_IP=zookeeper
- KAFKA_PORT=9092
- KAFKA_ADVERTISED_PORT=9092
extra_hosts:
- "kafka:127.0.0.1"
createtopics:
networks:
- promkafka
image: ches/kafka:0.10.1.0
depends_on:
- kafka
- zookeeper
command: kafka-topics.sh --create --topic test --replication-factor 1 --partitions 5 --zookeeper zookeeper:2181