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 18:24:24 +02:00
|
|
|
grafana_data: {}
|
2021-07-10 14:56:26 +02:00
|
|
|
|
|
|
|
|
|
2021-07-10 14:25:37 +02:00
|
|
|
services:
|
2021-07-10 14:56:26 +02:00
|
|
|
# Prometheus
|
|
|
|
|
# https://github.com/stefanprodan/dockprom
|
|
|
|
|
prometheus:
|
2022-08-05 15:50:18 +02:00
|
|
|
image: prom/prometheus:v2.37.0
|
2021-07-10 14:56:26 +02:00
|
|
|
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"
|
2021-07-10 18:24:24 +02:00
|
|
|
|
|
|
|
|
# Grafana
|
|
|
|
|
# https://github.com/stefanprodan/dockprom
|
|
|
|
|
grafana:
|
2022-08-05 15:50:18 +02:00
|
|
|
image: grafana/grafana:9.0.6
|
2021-07-10 18:24:24 +02:00
|
|
|
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
|
2022-06-30 12:37:11 +02:00
|
|
|
- GF_INSTALL_PLUGINS=flant-statusmap-panel
|
2021-07-10 18:24:24 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
networks:
|
|
|
|
|
- default
|
|
|
|
|
labels:
|
2021-07-15 17:47:54 +02:00
|
|
|
org.label-schema.group: "monitoring"
|
|
|
|
|
|
|
|
|
|
# MKTXP
|
|
|
|
|
# https://github.com/akpw/mktxp
|
|
|
|
|
mktxp:
|
2022-07-15 15:08:19 +02:00
|
|
|
# https://github.com/M0r13n/mikrotik_monitoring
|
|
|
|
|
# Note: You might need to build the image yourself if not on AMD64 or ARM-v7/V8
|
2022-11-27 15:40:42 +01:00
|
|
|
image: mktxp:latest
|
2021-07-15 17:47:54 +02:00
|
|
|
volumes:
|
2022-11-06 14:32:52 +01:00
|
|
|
# Since Version v0.37 mktxp runs as single user
|
|
|
|
|
# Prior it was root
|
2022-11-06 14:37:52 +01:00
|
|
|
- './mktxp/:/home/mktxp/mktxp/'
|
2021-07-15 17:47:54 +02:00
|
|
|
networks:
|
|
|
|
|
- default
|
2021-08-01 15:00:09 +02:00
|
|
|
restart: unless-stopped
|
2022-06-30 14:42:47 +02:00
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
|
image: nginx:latest
|
|
|
|
|
container_name: nginx
|
|
|
|
|
volumes:
|
|
|
|
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
2022-06-30 15:04:23 +02:00
|
|
|
- ./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
|
2022-06-30 14:42:47 +02:00
|
|
|
ports:
|
2022-11-27 15:40:42 +01:00
|
|
|
- 80:80 # You may adjust to some unprivileged ports
|
2022-06-30 14:42:47 +02:00
|
|
|
- 443:443
|
|
|
|
|
networks:
|
|
|
|
|
- default
|
2022-07-14 12:50:15 +02:00
|
|
|
restart: unless-stopped
|