-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.yml
62 lines (60 loc) · 1.62 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
version: "3"
services:
influxdb:
image: ${INFLUXDB_IMAGE}
container_name: influxdb
restart: always
user: "${CURRENT_UID}:${CURRENT_GID}"
ports:
- 8086:8086
networks:
- telemetry
volumes:
- ${INFLUXDB_CONFIG}:/etc/influxdb2
- ${INFLUXDB_ENGINE}:/var/lib/influxdb2
environment:
- INFLUXD_CONFIG_PATH=/etc/influxdb
- INFLUXD_ENGINE_PATH=/var/lib/influxdb2/engine
telegraf:
image: ${TELEGRAF_IMAGE} #telegraf
container_name: telegraf
restart: always
user: "${CURRENT_UID}:${CURRENT_GID}"
ports:
- 57000:57000
networks:
- telemetry
volumes:
- ${TELEGRAF_CONFIG}:/etc/telegraf:ro
entrypoint: /entrypoint.sh -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
grafana:
image: ${GRAFANA_IMAGE}
container_name: grafana
user: "${CURRENT_UID}:${CURRENT_GID}"
restart: always
ports:
- 3000:3000
networks:
- telemetry
volumes:
- ${GRAFANA_CONFIG}:/etc/grafana:ro
- grafana-volume:/var/lib/grafana
environment:
- http_proxy=http://proxy.esl.cisco.com
- https_proxy=http://proxy.esl.cisco.com
- no_proxy=localhost,influxdb,.cisco.com
- GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWD}
- INFLUXDB_ORG=${INFLUXDB_ORG}
- INFLUXDB_BUCKET=${INFLUXDB_BUCKET}
- INFLUXDB_TOKEN=${INFLUXDB_INIT_TOKEN}
networks:
telemetry:
ipam:
driver: default
config:
- subnet: 172.16.238.0/24
volumes:
grafana-volume:
external:
name: "${GRAFANA_VOLUME}"