-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose-tig.j2
61 lines (56 loc) · 1.5 KB
/
docker-compose-tig.j2
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
---
version: '2'
networks:
tig:
services:
influxdb:
image: influxdb:1.7.2
container_name: influxdb
expose:
- 8086
- 8083
networks:
- tig
{% if telegraf.openconfig is defined %}
telegraf-openconfig:
image: telegraf:1.9.1
container_name: telegraf-openconfig
volumes:
- $PWD/configs/telegraf-openconfig.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
- "influxdb"
networks:
- tig
{% endif %}
{% if telegraf.snmp is defined %}
telegraf-snmp:
image: inetsix/telegraf-snmp
container_name: telegraf-snmp
volumes:
- $PWD/configs/telegraf-snmp.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
- "influxdb"
networks:
- tig
{% endif %}
grafana:
image: grafana/grafana:5.4.2
container_name: grafana
ports:
- "{{ grafana.web.port|default("9081") }}:3000"
environment:
- GF_SECURITY_ADMIN_USER={{ grafana.web.username | default("super") }}
- GF_SECURITY_ADMIN_PASSWORD={{ grafana.web.password | default("juniper123") }}
volumes:
- $PWD/configs/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml:ro
- $PWD/configs/dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
- $PWD/dashboards:/var/tmp/dashboards
depends_on:
{% if telegraf.openconfig is defined %}
- "telegraf-openconfig"
{% endif %}
{% if telegraf.snmp is defined %}
- "telegraf-snmp"
{% endif %}
networks:
- tig