-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (57 loc) · 1.28 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
version: '3.2'
services:
db:
image: mongo
container_name: hnr-database
ports:
- 27017:27017
zookeeper:
image: wurstmeister/zookeeper
container_name: hnr-zookeeper
ports:
- 2181:2181
kafka-1:
image: wurstmeister/kafka
container_name: hnr-kafka-1
ports:
- 9092:9092
depends_on:
- zookeeper
networks:
- default
environment:
- KAFKA_PORT=9092
- KAFKA_ADVERTISED_HOST_NAME=${ADVERTISED_HOSTNAME}
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CREATE_TOPICS=albums:5:3
kafka-2:
image: wurstmeister/kafka
container_name: hnr-kafka-2
ports:
- 9093:9093
depends_on:
- zookeeper
networks:
- default
environment:
- KAFKA_PORT=9093
- KAFKA_ADVERTISED_HOST_NAME=${ADVERTISED_HOSTNAME}
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CREATE_TOPICS=albums:5:3
kafka-3:
image: wurstmeister/kafka
container_name: hnr-kafka-3
ports:
- 9094:9094
depends_on:
- zookeeper
networks:
- default
environment:
- KAFKA_PORT=9094
- KAFKA_ADVERTISED_HOST_NAME=${ADVERTISED_HOSTNAME}
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CREATE_TOPICS=albums:5:3
networks:
default:
driver: bridge