Skip to content

Commit

Permalink
Set up grafana
Browse files Browse the repository at this point in the history
This mirrors the spike in job-server's grafana branch.
  • Loading branch information
ghickman committed Oct 31, 2023
1 parent 27212d3 commit 0a81642
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit 0a81642

Please sign in to comment.