From 0a816424bfaaf5b6bd6c544a40ac8df707060770 Mon Sep 17 00:00:00 2001 From: George Hickman Date: Tue, 31 Oct 2023 11:16:07 +0000 Subject: [PATCH] Set up grafana This mirrors the spike in job-server's grafana branch. --- docker-compose.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..e484f496 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,32 @@ +services: + db: + image: "postgres:16" + environment: + POSTGRES_USER: user + POSTGRES_PASSWORD: pass + POSTGRES_DB: grafana + ports: + - "6543:5432" + volumes: + - postgres:/var/lib/postgresql/data/ + + grafana: + image: "grafana/grafana:latest" + environment: + GF_DATABASE_TYPE: postgres + GF_DATABASE_HOST: db:5432 + GF_DATABASE_NAME: grafana + GF_DATABASE_USER: user + GF_DATABASE_PASSWORD: pass + GF_DATABASE_SSL_MODE: disable + depends_on: + - db + ports: + - 3000:3000 + volumes: + - grafana:/var/lib/grafana + + +volumes: + postgres: + grafana: