mirror of
https://github.com/M0r13n/mikrotik_monitoring.git
synced 2025-12-19 00:19:31 +00:00
improves naming of containers
This commit is contained in:
parent
a3c990ca83
commit
7cb70f316f
2 changed files with 83 additions and 3 deletions
|
|
@ -0,0 +1,79 @@
|
||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
prometheus_data: {}
|
||||||
|
grafana_data: {}
|
||||||
|
|
||||||
|
services:
|
||||||
|
# Prometheus
|
||||||
|
# https://github.com/stefanprodan/dockprom
|
||||||
|
prometheus:
|
||||||
|
image: prom/prometheus:v2.42.0
|
||||||
|
container_name: prometheus
|
||||||
|
security_opt:
|
||||||
|
- apparmor:docker-mikrotik-monitoring
|
||||||
|
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.3.6
|
||||||
|
security_opt:
|
||||||
|
- apparmor:docker-mikrotik-monitoring
|
||||||
|
container_name: grafana
|
||||||
|
volumes:
|
||||||
|
- grafana_data:/var/lib/grafana
|
||||||
|
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
|
||||||
|
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
|
||||||
|
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
|
||||||
|
- GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/etc/grafana/provisioning/dashboards/mikrotik/monitor.json
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
labels:
|
||||||
|
org.label-schema.group: "monitoring"
|
||||||
|
|
||||||
|
# MKTXP
|
||||||
|
# https://github.com/akpw/mktxp
|
||||||
|
mktxp:
|
||||||
|
image: ghcr.io/akpw/mktxp:gha-4093170275
|
||||||
|
security_opt:
|
||||||
|
- apparmor:docker-mikrotik-monitoring
|
||||||
|
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
|
||||||
|
security_opt:
|
||||||
|
- apparmor:docker-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 # You may adjust to some unprivileged ports
|
||||||
|
- 443:443
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
restart: unless-stopped
|
||||||
|
|
@ -9,7 +9,7 @@ services:
|
||||||
# https://github.com/stefanprodan/dockprom
|
# https://github.com/stefanprodan/dockprom
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:v2.42.0
|
image: prom/prometheus:v2.42.0
|
||||||
container_name: prometheus
|
container_name: mikrotik-prometheus
|
||||||
volumes:
|
volumes:
|
||||||
- ./prometheus:/etc/prometheus
|
- ./prometheus:/etc/prometheus
|
||||||
- prometheus_data:/prometheus
|
- prometheus_data:/prometheus
|
||||||
|
|
@ -26,7 +26,7 @@ services:
|
||||||
# https://github.com/stefanprodan/dockprom
|
# https://github.com/stefanprodan/dockprom
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana:9.3.6
|
image: grafana/grafana:9.3.6
|
||||||
container_name: grafana
|
container_name: mikrotik-grafana
|
||||||
volumes:
|
volumes:
|
||||||
- grafana_data:/var/lib/grafana
|
- grafana_data:/var/lib/grafana
|
||||||
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
|
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
|
||||||
|
|
@ -47,6 +47,7 @@ services:
|
||||||
# https://github.com/akpw/mktxp
|
# https://github.com/akpw/mktxp
|
||||||
mktxp:
|
mktxp:
|
||||||
image: ghcr.io/akpw/mktxp:gha-4093170275
|
image: ghcr.io/akpw/mktxp:gha-4093170275
|
||||||
|
container_name: mikrotik-mktxp
|
||||||
volumes:
|
volumes:
|
||||||
# Since Version v0.37 mktxp runs as single user
|
# Since Version v0.37 mktxp runs as single user
|
||||||
# Prior it was root
|
# Prior it was root
|
||||||
|
|
@ -57,7 +58,7 @@ services:
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
container_name: nginx
|
container_name: mikrotik-nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||||
- ./nginx/nginx-selfsigned.key:/etc/nginx/ssl/nginx-selfsigned.key
|
- ./nginx/nginx-selfsigned.key:/etc/nginx/ssl/nginx-selfsigned.key
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue