-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (52 loc) · 1.46 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
version: "3.9"
services:
zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka:2.11-1.1.1
ports:
- "9092:9092"
expose:
- "9093"
hostname: kafka
links:
- zookeeper
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_DELETE_TOPIC_ENABLE: "true"
kafka-workload:
build: ./kafka-perf-test/.
links:
- kafka
environment:
KAFKA_TOPIC: "events"
NUM_RECORDS: "100"
PRODUCER_THROUGHPUT: "100"
TEST_INTERVAL_SECONDS: "30"
BOOTSTRAP_SERVERS: "kafka:9093"
command: ["./producer_test.sh"]
redpanda:
image: docker.redpanda.com/redpandadata/console:latest
links:
- kafka
ports:
- "8081:8080"
environment:
KAFKA_BROKERS: kafka:9093
postgres:
image: postgres:16.1-alpine3.18
environment:
POSTGRES_PASSWORD: "secret"
PGDATA: "/var/lib/postgresql/data/pgdata"
volumes:
- ./pgdata:/var/lib/postgresql/data
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"