Refactoring the directory structure and added the ability to run with docker-compose

This commit is contained in:
IgorKha 2021-10-08 03:03:16 +03:00
parent 7aba11db31
commit ef3aab6cdb
No known key found for this signature in database
GPG key ID: F283C5AB2D59E902
8 changed files with 7884 additions and 5 deletions

34
docker-compose.yml Normal file
View 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