mikrotik_monitoring/docker-compose.yml

39 lines
931 B
YAML
Raw Normal View History

2021-07-10 14:25:37 +02:00
version: "3.9"
2021-07-10 14:56:26 +02:00
volumes:
prometheus_data: {}
2021-07-10 14:25:37 +02:00
services:
2021-07-10 14:56:26 +02:00
# Mikrotik Exporter
# https://github.com/nshttpd/mikrotik-exporter
2021-07-10 14:25:37 +02:00
mikrotik_exporter:
image: nshttpd/mikrotik-exporter-linux-arm64:1.0.12-DEVEL # Change this depending on your version and/or if you built the image locally
volumes:
- './mikrotik_exporter:/config'
env_file: .env
ports:
- 9436:9436
2021-07-10 14:56:26 +02:00
networks:
- default
restart: unless-stopped
# Prometheus
# https://github.com/stefanprodan/dockprom
prometheus:
image: prom/prometheus:v2.28.1
container_name: prometheus
volumes:
- ./prometheus:/etc/prometheus
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
restart: unless-stopped
ports:
- 9090:9090
networks:
- default
labels:
org.label-schema.group: "monitoring"