-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.benchmark.yml
More file actions
78 lines (73 loc) · 2.21 KB
/
Copy pathdocker-compose.benchmark.yml
File metadata and controls
78 lines (73 loc) · 2.21 KB
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
76
77
78
---
version: '3.8'
services:
zookeeper:
image: >-
docker.io/confluentinc/cp-zookeeper@sha256:02f6c042bb9a7844382fc4cedc513a44585d8a5acae873fb9e510e3ca9dcabc6
container_name: benchmark-zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
networks:
- benchmark-net
kafka:
image: >-
docker.io/confluentinc/cp-kafka@sha256:fbbb6fa11b258a88b83f54d4f0bddfcffbf2279f99d66a843486e3da7bdfbf41
container_name: benchmark-kafka
depends_on:
- zookeeper
ports:
- "127.0.0.1:9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: >-
PLAINTEXT://kafka:29092,PLAINTEXT_HOST://127.0.0.1:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: >-
PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_DELETE_TOPIC_ENABLE: "true"
KAFKA_FILE_DELETE_DELAY_MS: 1000
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 1000
KAFKA_LOG_SEGMENT_BYTES: 268435456
KAFKA_NUM_PARTITIONS: 10
networks:
- benchmark-net
healthcheck:
test: kafka-broker-api-versions --bootstrap-server localhost:9092
interval: 10s
timeout: 10s
retries: 10
ingress-runner:
image: >-
docker.io/confluentinc/cp-kafka@sha256:fbbb6fa11b258a88b83f54d4f0bddfcffbf2279f99d66a843486e3da7bdfbf41
container_name: benchmark-ingress
entrypoint: ["/bin/bash", "-lc"]
command: ["trap : TERM INT; sleep infinity & wait"]
read_only: true
tmpfs:
- /tmp
depends_on:
- kafka
networks:
- benchmark-net
output-runner:
image: >-
docker.io/confluentinc/cp-kafka@sha256:fbbb6fa11b258a88b83f54d4f0bddfcffbf2279f99d66a843486e3da7bdfbf41
container_name: benchmark-output
entrypoint: ["/bin/bash", "-lc"]
command: ["trap : TERM INT; sleep infinity & wait"]
read_only: true
tmpfs:
- /tmp
depends_on:
- kafka
networks:
- benchmark-net
networks:
benchmark-net:
name: streamforge-benchmark-net
driver: bridge
internal: true