forked from KaotoIO/kaoto-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkafka-postgres.compose.yaml
63 lines (59 loc) · 1.68 KB
/
kafka-postgres.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
63
version: '3.9'
services:
kafka:
image: docker.io/bitnami/kafka:3.7
container_name: kafka
hostname: kafka
restart: 'no'
ports:
- 9092:9092
volumes:
- "kafka_data:/bitnami"
environment:
# KRaft settings
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
# Listeners
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9094,CONTROLLER://:9093,EXTERNAL://:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9094,EXTERNAL://localhost:9092
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=PLAINTEXT
kafka-ui:
image: docker.io/provectuslabs/kafka-ui:v0.7.2
container_name: kafka-ui
hostname: kafka-ui
restart: 'no'
ports:
- 8080:8080
environment:
- DYNAMIC_CONFIG_ENABLED=true
- KAFKA_CLUSTERS_0_NAME=wizard_test
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9094
postgres:
image: docker.io/postgres:16.2-alpine
container_name: postgres
hostname: postgres
restart: 'no'
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- PD_DATA:/var/lib/postgresql/data/pgdata
- TZ:UTC
- PGTZ:UTC
- POSTGRES_HOST=localhost
- POSTGRES_PORT=5432
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 30s
timeout: 5s
retries: 5
volumes:
kafka_data:
postgres-data: