From 0123dbe17c38e72c778abd79e29d2e018b908016 Mon Sep 17 00:00:00 2001 From: ScarletRedMan Date: Sat, 10 Feb 2024 08:10:04 +0700 Subject: [PATCH] Added docker-compose with Prometheus and Grafana --- .gitignore | 2 ++ config/prometheus.yml | 0 docker-compose.yml | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 config/prometheus.yml create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index c2065bc..4500a0d 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,5 @@ out/ ### VS Code ### .vscode/ + +appdata/ diff --git a/config/prometheus.yml b/config/prometheus.yml new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..fb89711 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,25 @@ +version: '3.9' + +services: + prometheus: + image: prom/prometheus + ports: + - "9090:9090" + volumes: + - "./config/prometheus.yml:/etc/prometheus/prometheus.yml" + networks: + metrics: + aliases: [ 'prometheus' ] + grafana: + image: grafana/grafana + ports: + - "3000:3000" + environment: + GF_SECURITY_ADMIN_USER: admin + GF_SECURITY_ADMIN_PASSWORD: admin + networks: + metrics: + aliases: [ 'grafana' ] + +networks: + metrics: