This repository has been archived by the owner on Aug 7, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
63 lines (56 loc) · 1.53 KB
/
docker-compose.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
56
57
58
59
60
61
62
version: "3"
services:
mzookeeper:
image: wurstmeister/zookeeper
container_name: kafka-swoole-zookeeper
mkafka1:
image: wurstmeister/kafka:2.11-0.9.0.1
container_name: kafka-swoole-kafka1
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://:9092
KAFKA_LISTENERS: PLAINTEXT://:9092
KAFKA_ZOOKEEPER_CONNECT: mzookeeper:2181
KAFKA_NUM_PARTITIONS: 4
depends_on:
- mzookeeper
mkafka2:
image: wurstmeister/kafka:2.11-0.9.0.1
container_name: kafka-swoole-kafka2
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://:9092
KAFKA_LISTENERS: PLAINTEXT://:9092
KAFKA_ZOOKEEPER_CONNECT: mzookeeper:2181
KAFKA_NUM_PARTITIONS: 4
depends_on:
- mzookeeper
mkafka3:
image: wurstmeister/kafka:2.11-0.9.0.1
container_name: kafka-swoole-kafka3
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://:9092
KAFKA_LISTENERS: PLAINTEXT://:9092
KAFKA_ZOOKEEPER_CONNECT: mzookeeper:2181
KAFKA_NUM_PARTITIONS: 4
depends_on:
- mzookeeper
mkafka4:
image: wurstmeister/kafka:2.11-0.9.0.1
container_name: kafka-swoole-kafka3
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://:9092
KAFKA_LISTENERS: PLAINTEXT://:9092
KAFKA_ZOOKEEPER_CONNECT: mzookeeper:2181
KAFKA_NUM_PARTITIONS: 4
depends_on:
- mzookeeper
kafka-swoole:
build: ./
container_name: kafka-swoole-php
volumes:
- ./:/data/www
depends_on:
- mzookeeper
- mkafka1
- mkafka2
- mkafka3
- mkafka4