-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
143 lines (143 loc) · 3.91 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: '3'
services:
prometheus:
image: 'prom/prometheus:latest'
container_name: prometheus
volumes:
- './prometheus:/etc/prometheus/'
- 'prometheus_data:/prometheus'
command:
- '--config.file=/etc/prometheus/promet.yml'
- '--web.enable-admin-api'
- '--log.level=debug'
restart: always
# networks:
# testlab:
# ipv4_address: 10.0.0.10
network_mode: host
expose:
- 9100
ports:
- '9090:9090'
####################################################################################
node-exporter:
image: 'prom/node-exporter:latest'
container_name: node-exporter
user: root
privileged: true
volumes:
- '/proc:/host/proc:ro'
- '/sys:/host/sys:ro'
- '/:/rootfs:ro'
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
restart: always
# networks:
# testlab:
# ipv4_address: 10.0.0.20
network_mode: host
expose:
- 9100
ports:
- '9100:9100'
####################################################################################
blackbox:
image: 'prom/blackbox-exporter:latest'
container_name: blackbox
volumes:
- './prometheus/blackbox:/etc/blackbox/'
command:
- '--config.file=/etc/blackbox/blackbox.yml'
restart: always
# networks:
# testlab:
# ipv4_address: 10.0.0.30
network_mode: host
ports:
- '9115:9115'
####################################################################################
grafana-prom:
image: 'grafana/grafana:latest'
container_name: grafana-prom
volumes:
- 'grafana_data:/var/lib/grafana'
#- './grafana/dashboards/:/etc/grafana/dashboards'
- './grafana/provisioning/:/etc/grafana/provisioning/'
environment:
- 'GF_SECURITY_ADMIN_USER=${ADMIN_USER:-admin}'
- 'GF_SECURITY_ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin}'
- 'GF_USERS_ALLOW_SIGN_UP=false'
- 'GF_INSTALL_PLUGINS=grafana-piechart-panel,alexanderzobnin-zabbix-app'
restart: always
# networks:
# testlab:
# ipv4_address: 10.0.0.40
network_mode: host
expose:
- 3000
ports:
- '3000:3000'
depends_on:
- prometheus
####################################################################################
ipmi-exporter:
image: 'valdis932/ipmi-exporter:latest'
container_name: ipmi-exporter
volumes:
- './prometheus/ipmi-exporter/ipmi.yml:/etc/ipmi-exporter/ipmi.yml'
environment: []
restart: always
network_mode: host
expose:
- 9290
ports:
- '9290:9290'
# networks:
# testlab:
# ipv4_address: 10.0.0.50
####################################################################################
snmp-exporter:
image: 'prom/snmp-exporter:latest'
container_name: snmp-exporter
volumes:
- './prometheus/snmp-exporter:/etc/snmp-exporter/'
command:
- '--config.file=/etc/snmp-exporter/snmp_extended.yml'
restart: always
# networks:
# testlab:
# ipv4_address: 10.0.0.60
network_mode: host
expose:
- 9116
ports:
- '9116:9116'
####################################################################################
mikrotik-exporter:
image: 'nshttpd/mikrotik-exporter:1.0.12-DEVEL'
container_name: mikrotik-exporter
restart: always
volumes:
- './prometheus/mikrotik-exporter/mikrotik.yml:/app/mikrotik.yml'
environment:
- CONFIG_FILE=/app/mikrotik.yml
# networks:
# testlab:
# ipv4_address: 10.0.0.70
network_mode: host
expose:
- 9436
ports:
- '9436:9436'
####################################################################################
#networks:
# testlab:
# driver: bridge
# ipam:
# config:
# - subnet: 10.0.0.0/24
volumes:
prometheus_data: {}
grafana_data: {}