forked from hoesler/kafka-connect-exporter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
95 lines (88 loc) · 2.38 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3'
services:
kafka-connect-exporter:
build:
context: ../
dockerfile: Dockerfile
image: zenreach/kafka-connect-exporter
container_name: kafka-connect-exporter
hostname: kafka-connect-exporter
expose:
- 9400
environment:
- KAFKA_CONNECT_HOST=http://connect:8083
networks:
- default
connect:
image: zenreach/kafka-connect:2.0.0
container_name: connect
hostname: connect
expose:
- 9400
ports:
- "8083:8083"
environment:
- CONNECT_BOOTSTRAP_SERVERS=kafka:9092
- CONNECT_REST_PORT=8083
- CONNECT_GROUP_ID=local
- CONNECT_CONFIG_STORAGE_TOPIC=local-config
- CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR=1
- CONNECT_OFFSET_STORAGE_TOPIC=local-offsets
- CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR=1
- CONNECT_STATUS_STORAGE_TOPIC=local-status
- CONNECT_STATUS_STORAGE_REPLICATION_FACTOR=1
- CONNECT_KEY_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- CONNECT_VALUE_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- CONNECT_INTERNAL_KEY_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- CONNECT_INTERNAL_VALUE_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- CONNECT_REST_ADVERTISED_HOST_NAME=connect
networks:
- default
kafka:
image: confluentinc/cp-kafka:4.0.0
container_name: kafka
hostname: kafka
environment:
- ADVERTISED_HOST=kafka
- ADVERTISED_PORT=9092
expose:
- 9092
environment:
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- JMX_PORT=5555
networks:
- default
zookeeper:
image: confluentinc/cp-zookeeper:4.0.0
container_name: zookeeper
hostname: zookeeper
expose:
- 2181
environment:
- ZOOKEEPER_CLIENT_PORT=2181
networks:
- default
prometheus:
image: prom/prometheus:v2.2.0
container_name: prometheus
hostname: prometheus
ports:
- "9090:9090"
networks:
- default
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
mongo:
image: mongo:3.2
command: ["mongod", "--replSet", "rs0"]
container_name: mongo
hostname: mongo
expose:
- 27017
networks:
- default
networks:
default:
driver: bridge