forked from freemansoft/cp-server-jolokia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-monitoring.yml
68 lines (63 loc) · 1.49 KB
/
docker-compose-monitoring.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
# from https://docs.confluent.io/current/quickstart/ce-docker-quickstart.html
# contents from https://github.com/confluentinc/cp-all-in-one/ formerly https://github.com/confluentinc/examples/tree/5.5.1-post/cp-all-in-one
---
version: '3.3'
services:
# section from https://github.com/nicolargo/docker-influxdb-grafana/blob/master/docker-compose.yml
influxdb:
image: influxdb:1.8-alpine
container_name: influxdb
ports:
- 8086:8086
env_file:
- 'env.influxdb'
networks:
- monitoring
volumes:
# data persistence
- influxdb_volume:/var/lib/influxdb
telegraf:
image: telegraf:latest
container_name: telegraf
depends_on:
- influxdb
networks:
- monitoring
- streaming
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
# default admin/admin
grafana:
image: grafana/grafana:7.5.4
container_name: grafana
ports:
- 3000:3000
env_file:
- 'env.grafana'
user: "0"
depends_on:
- influxdb
networks:
- monitoring
volumes:
# data persistence
- grafana_volume:/var/lib/grafana
volumes:
# will be <svc_name>_data
zookeeper_data:
driver: local
# will be <svc_name>_log
zookeeper_log:
driver: local
# will be <svc_name>_data
kafka_data:
driver: local
grafana_volume:
driver: local
influxdb_volume:
driver: local
# the actual name will be <directory_name>_<network_name>
networks:
streaming:
driver: bridge
monitoring: