-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-backup.yml
75 lines (67 loc) · 1.99 KB
/
docker-compose-backup.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3.7'
services:
zookeeper:
image: confluentinc/cp-zookeeper:6.1.1
container_name: zookeeper
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_SERVER_ID: "1"
networks:
- fmap-int
kafkaserver:
image: confluentinc/cp-kafka:6.1.1
container_name: kafkaserver
hostname: kafkaserver
depends_on:
- zookeeper
ports:
- "9092:9092"
- "9101:9101"
environment:
KAFKA_BROKER_ID: 0
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafkaserver:9092
KAFKA_DEFAULT_REPLICATION_FACTOR: 2
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 2
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 2
networks:
- fmap-int
- fmap-com
kafkaworker1:
image: confluentinc/cp-kafka:6.1.1
container_name: kafkaWorker1
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafkaworker1:9092
KAFKA_DEFAULT_REPLICATION_FACTOR: 2
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 2
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 2
networks:
- fmap-int
- fmap-com
webui:
image: provectuslabs/kafka-ui:latest
container_name: kafkaWebUI
environment:
KAFKA_CLUSTERS_0_NAME: my_cluster
KAFKA_CLUSTERS_0_ZOOKEEPER: zookeeper:2181
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafkaserver:9092
ports:
- 8080:8080
depends_on:
- kafkaserver
networks:
- fmap-int
networks:
fmap-int:
name: fmap-int
driver: bridge
fmap-com:
name: fmap-com
driver: bridge