mirror of
https://github.com/M0r13n/mikrotik_monitoring.git
synced 2025-12-06 01:59:30 +00:00
73 lines
2 KiB
YAML
73 lines
2 KiB
YAML
version: "3.9"
|
|
|
|
volumes:
|
|
prometheus_data: {}
|
|
grafana_data: {}
|
|
|
|
|
|
services:
|
|
# Prometheus
|
|
# https://github.com/stefanprodan/dockprom
|
|
prometheus:
|
|
image: prom/prometheus:v2.37.0
|
|
container_name: prometheus
|
|
volumes:
|
|
- ./prometheus:/etc/prometheus
|
|
- prometheus_data:/prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
restart: unless-stopped
|
|
networks:
|
|
- default
|
|
labels:
|
|
org.label-schema.group: "monitoring"
|
|
|
|
# Grafana
|
|
# https://github.com/stefanprodan/dockprom
|
|
grafana:
|
|
image: grafana/grafana:9.0.6
|
|
container_name: grafana
|
|
volumes:
|
|
- grafana_data:/var/lib/grafana
|
|
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
|
|
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
|
|
environment:
|
|
- GF_SECURITY_ADMIN_USER=${ADMIN_USER:-admin}
|
|
- GF_SECURITY_ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin}
|
|
- GF_USERS_ALLOW_SIGN_UP=false
|
|
- GF_INSTALL_PLUGINS=flant-statusmap-panel
|
|
restart: unless-stopped
|
|
networks:
|
|
- default
|
|
labels:
|
|
org.label-schema.group: "monitoring"
|
|
|
|
# MKTXP
|
|
# https://github.com/akpw/mktxp
|
|
mktxp:
|
|
# https://github.com/M0r13n/mikrotik_monitoring
|
|
# Note: You might need to build the image yourself if not on AMD64 or ARM-v7/V8
|
|
image: leonmorten/mktxp:latest
|
|
volumes:
|
|
# Since Version v0.37 mktxp runs as single user
|
|
# Prior it was root
|
|
- './mktxp/:/home/mktxp/mktxp/'
|
|
networks:
|
|
- default
|
|
restart: unless-stopped
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
container_name: nginx
|
|
volumes:
|
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
|
- ./nginx/nginx-selfsigned.key:/etc/nginx/ssl/nginx-selfsigned.key
|
|
- ./nginx/nginx-selfsigned.crt:/etc/nginx/ssl/nginx-selfsigned.crt
|
|
- ./nginx/self-signed.conf:/etc/nginx/ssl/self-signed.conf
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
networks:
|
|
- default
|
|
restart: unless-stopped
|