2020-08-07 11:52:15 +01:00
|
|
|
version: "2.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
grafana:
|
|
|
|
image: grafana/grafana:latest
|
|
|
|
environment:
|
|
|
|
- TZ=Europe/London
|
2020-08-30 14:50:03 +01:00
|
|
|
- GF_DATABASE_URL=postgres://grafana:grafana@db/grafana
|
2020-09-13 10:47:59 +01:00
|
|
|
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
|
|
|
|
- GF_RENDERING_CALLBACK_URL=http://grafana:3000/
|
2020-08-07 11:52:15 +01:00
|
|
|
volumes:
|
2020-08-22 12:07:44 +01:00
|
|
|
- /mnt/tank/app-data/grafana:/var/lib/grafana
|
2020-08-07 11:52:15 +01:00
|
|
|
restart: unless-stopped
|
2020-08-30 14:50:03 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
2020-09-13 10:47:59 +01:00
|
|
|
- renderer
|
2020-08-07 11:52:15 +01:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- grafana
|
2020-08-07 12:03:45 +01:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.grafana.rule=Host(`grafana.jakehoward.tech`)
|
|
|
|
- traefik.http.routers.grafana.tls.certresolver=le
|
2020-08-07 11:52:15 +01:00
|
|
|
|
2020-08-30 14:50:03 +01:00
|
|
|
db:
|
|
|
|
image: postgres:12-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /mnt/tank/dbs/postgres/grafana:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=grafana
|
|
|
|
- POSTGRES_USER=grafana
|
|
|
|
|
2020-09-13 10:47:59 +01:00
|
|
|
renderer:
|
|
|
|
image: grafana/grafana-image-renderer:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- BROWSER_TZ=Europe/London
|
|
|
|
|
2020-08-07 11:52:15 +01:00
|
|
|
networks:
|
|
|
|
grafana:
|
|
|
|
external: true
|