From ac5d6f0f3b0371377b9f738fce4b1cc5874226ed Mon Sep 17 00:00:00 2001 From: rouzbeh Date: Tue, 2 Jun 2026 07:37:35 +0000 Subject: [PATCH] Upload files to "/" --- monitoring.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 monitoring.yml diff --git a/monitoring.yml b/monitoring.yml new file mode 100644 index 0000000..be5ba80 --- /dev/null +++ b/monitoring.yml @@ -0,0 +1,31 @@ +services: + prometheus: + image: prom/prometheus + container_name: prometheus + restart: always + volumes: + - ./prometheus.yml:/etc/prometheus/prometheus.yml + - ./alert.rules.yml:/etc/prometheus/alert.rules.yml + ports: + - "9090:9090" + command: + - "--config.file=/etc/prometheus/prometheus.yml" + + node-exporter: + image: prom/node-exporter + container_name: node-exporter + restart: always + ports: + - "9100:9100" + + + grafana: + image: grafana/grafana + container_name: grafana + restart: always + ports: + - "3000:3000" + environment: + - GF_SECURITY_ADMIN_USER=admin + - GF_SECURITY_ADMIN_PASSWORD=admin +