This repository has been archived by the owner on Jul 28, 2020. It is now read-only.
forked from ThreeDotsLabs/watermill-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (67 loc) · 1.94 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# for Watermill development purposes.
# For Watermill based application docker please check https://watermill.io/docs/getting-started/
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.3.1
restart: unless-stopped
environment:
ZOOKEEPER_SERVER_ID: 1
ZOOKEEPER_CLIENT_PORT: "2181"
ZOOKEEPER_TICK_TIME: "2000"
network_mode: "host"
kafka1:
image: confluentinc/cp-kafka:5.3.1
depends_on:
- zookeeper
env_file:
- dev/docker-kafka.env
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9091,PLAINTEXT_HOST://localhost:29091
KAFKA_BROKER_ID: 1
network_mode: "host"
restart: unless-stopped
kafka2:
image: confluentinc/cp-kafka:5.3.1
depends_on:
- zookeeper
env_file:
- dev/docker-kafka.env
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092,PLAINTEXT_HOST://localhost:29092
KAFKA_BROKER_ID: 2
network_mode: "host"
restart: unless-stopped
kafka3:
image: confluentinc/cp-kafka:5.3.1
depends_on:
- zookeeper
env_file:
- dev/docker-kafka.env
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9093,PLAINTEXT_HOST://localhost:29093
KAFKA_BROKER_ID: 3
network_mode: "host"
restart: unless-stopped
kafka4:
image: confluentinc/cp-kafka:5.3.1
depends_on:
- zookeeper
env_file:
- dev/docker-kafka.env
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9094,PLAINTEXT_HOST://localhost:29094
KAFKA_BROKER_ID: 4
network_mode: "host"
restart: unless-stopped
kafka5:
image: confluentinc/cp-kafka:5.3.1
depends_on:
- zookeeper
env_file:
- dev/docker-kafka.env
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9095,PLAINTEXT_HOST://localhost:29095
KAFKA_BROKER_ID: 5
network_mode: "host"
restart: unless-stopped