-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-1-broker.yml
47 lines (43 loc) · 1.3 KB
/
docker-compose-1-broker.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
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper
hostname: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
EXTRA_ARGS: -javaagent:/usr/share/jmx-exporter/jmx_prometheus_javaagent-0.16.1.jar=1234:/usr/share/jmx-exporter/zookeeper.yml
volumes:
- ./jmx-exporter/:/usr/share/jmx-exporter
kafka-1:
image: confluentinc/cp-kafka
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
EXTRA_ARGS: -javaagent:/usr/share/jmx-exporter/jmx_prometheus_javaagent-0.16.1.jar=1234:/usr/share/jmx-exporter/kafka_broker.yml
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka-1:9092"
volumes:
- ./jmx-exporter/:/usr/share/jmx-exporter
prometheus:
image: prom/prometheus:v2.29.2
container_name: prometheus
ports:
- 9090:9090
volumes:
- ./prometheus/prometheus-config/:/etc/prometheus
grafana:
image: grafana/grafana:8.1.3
container_name: grafana
environment:
- "GF_SECURITY_ADMIN_USER=admin"
- "GF_SECURITY_ADMIN_PASSWORD=password"
- "GF_USERS_ALLOW_SIGN_UP=false"
ports:
- 3000:3000
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning
networks:
default:
external:
name: benchmark-producer-network