forked from jstile-lbl/hms-hmcollector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_dual-kafka.yaml
55 lines (53 loc) · 1.68 KB
/
docker-compose_dual-kafka.yaml
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
51
52
53
54
55
version: '3'
services:
zookeeper1:
image: artifactory.algol60.net/docker.io/confluentinc/cp-zookeeper:6.1.1
hostname: zookeeper1
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka1:
image: artifactory.algol60.net/docker.io/confluentinc/cp-kafka:6.1.1
hostname: kafka1
depends_on:
- zookeeper1
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper1:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka1:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
zookeeper2:
image: artifactory.algol60.net/docker.io/confluentinc/cp-zookeeper:6.1.1
hostname: zookeeper2
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka2:
image: artifactory.algol60.net/docker.io/confluentinc/cp-kafka:6.1.1
hostname: kafka2
depends_on:
- zookeeper2
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper2:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka2:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
hms-hmcollector:
build: .
environment:
- LOG_LEVEL=TRACE
- POLLING_ENABLED=false
- RF_SUBSCRIBE_ENABLED=false
- REST_PORT=80
- VAULT_ENABLED=false
depends_on:
- kafka1
- kafka2
ports:
- "80:80"
volumes:
- ./configs/kafka_brokers-local_dual.json:/configs/kafka_brokers.json