-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
49 lines (48 loc) · 1.95 KB
/
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
# This configuration is intended for dev purpose
name : dev-quickstart-kafka-stream-initialize
services :
zookeeper :
image : docker.io/bitnami/zookeeper:3.9.3
container_name : dev-quickstart-kafka-stream-initialize-zookeeper
restart : unless-stopped
environment :
ZOOKEEPER_CLIENT_PORT : 2181
ZOOKEEPER_TICK_TIME : 2000
ALLOW_ANONYMOUS_LOGIN : "yes"
kafka :
image : docker.io/bitnami/kafka:3.9.0
container_name : dev-quickstart-kafka-stream-initialize-broker
restart : unless-stopped
depends_on :
- zookeeper
ports :
- "9092:9092"
environment :
KAFKA_BROKER_ID : 1
KAFKA_ENABLE_KRAFT : "no"
KAFKA_CFG_LISTENERS : PLAINTEXT://:9092
KAFKA_CFG_ADVERTISED_LISTENERS : PLAINTEXT://127.0.0.1:9092
KAFKA_CFG_ZOOKEEPER_CONNECT : zookeeper:2181
ALLOW_PLAINTEXT_LISTENER : "yes"
prometheus :
container_name : dev-quickstart-kafka-stream-initialize-prometheus
image : prom/prometheus:v2.54.1
volumes :
- ./src/main/docker/prometheus/:/etc/prometheus/
command :
- '--config.file=/etc/prometheus/prometheus.yml'
# On MacOS, remove next line and replace localhost by host.docker.internal in src/main/docker/prometheus/prometheus.yml and
# docker/grafana/provisioning/datasources/datasource.yml
network_mode : 'host' # to test locally running service
grafana :
container_name : dev-quickstart-kafka-stream-initialize-grafana
image : grafana/grafana:11.2.2
volumes :
- ./src/main/docker/grafana/provisioning/:/etc/grafana/provisioning/
environment :
- GF_SECURITY_ADMIN_PASSWORD=changeme
- GF_USERS_ALLOW_SIGN_UP=false
- GF_INSTALL_PLUGINS=grafana-piechart-panel
# On MacOS, remove next line and replace localhost by host.docker.internal in src/main/docker/prometheus/prometheus.yml and
# docker/grafana/provisioning/datasources/datasource.yml
network_mode : 'host' # to test locally running service