mirror of
https://github.com/IgorKha/Grafana-Mikrotik.git
synced 2026-01-02 15:49:31 +00:00
Refactoring the directory structure and added the ability to run with docker-compose
This commit is contained in:
parent
7aba11db31
commit
ef3aab6cdb
8 changed files with 7884 additions and 5 deletions
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
version: '3.9'
|
||||
|
||||
services:
|
||||
grafana:
|
||||
image: grafana/grafana:8.1.7
|
||||
container_name: mk_grafana
|
||||
restart: always
|
||||
volumes:
|
||||
- ./grafana/provisioning/:/etc/grafana/provisioning/
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_USER=${GF_ADMIN_USER}
|
||||
- GF_SECURITY_ADMIN_PASSWORD=${GF_ADMIN_PASSWORD}
|
||||
- GF_USERS_ALLOW_SIGN_UP=false
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus
|
||||
container_name: mk_prometheus
|
||||
restart: always
|
||||
volumes:
|
||||
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- ./prometheus/data/:/prometheus
|
||||
ports:
|
||||
- "9090:9090"
|
||||
|
||||
snmp_exporter:
|
||||
image: mashinkopochinko/snmp_exporter_mikrotik
|
||||
container_name: mk_snmp_exporter
|
||||
restart: always
|
||||
ports:
|
||||
- "9116:9116"
|
||||
depends_on:
|
||||
- prometheus
|
||||
Loading…
Add table
Add a link
Reference in a new issue