-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.29 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
version: '2.1'
x-kafka-defaults: &kafka-defaults
image: wurstmeister/kafka
ports:
- "9092"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
x-kafka-environment-defaults: &kafka-environment-defaults
HOSTNAME_COMMAND: "echo $$(hostname)"
KAFKA_ADVERTISED_PORT: 9092
KAFKA_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181"
kafka_1:
<<: *kafka-defaults
container_name: test_kafka_1
environment:
<<: *kafka-environment-defaults
KAFKA_BROKER_ID: 1
kafka_2:
<<: *kafka-defaults
container_name: test_kafka_2
environment:
<<: *kafka-environment-defaults
KAFKA_BROKER_ID: 2
kafkatest:
image: wurstmeister/kafka
environment:
KAFKA_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- .:/tests
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /tests
entrypoint:
- ./runTestPattern.sh
command:
- "*/*.kafka.sh"
kafkacattest:
image: confluentinc/cp-kafkacat:5.0.0
environment:
- BROKER_LIST
- KAFKA_VERSION=${KAFKA_VERSION-2.8.1}
volumes:
- .:/tests
working_dir: /tests
entrypoint:
- ./runTestPattern.sh
command:
- "*/*.kafkacat.sh"