Expose grafana

This commit is contained in:
Jake Howard 2020-08-07 12:03:45 +01:00
parent 9d014cfa1c
commit 0902dd001e
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 12 additions and 2 deletions

View file

@ -5,14 +5,16 @@ services:
image: grafana/grafana:latest
environment:
- TZ=Europe/London
ports:
- 3000:3000
volumes:
- ./grafana:/var/lib/grafana
restart: unless-stopped
networks:
- default
- grafana
labels:
- traefik.enable=true
- traefik.http.routers.grafana.rule=Host(`grafana.jakehoward.tech`)
- traefik.http.routers.grafana.tls.certresolver=le
networks:
grafana:

View file

@ -147,3 +147,11 @@ resource "cloudflare_record" "jakehowardtech_contessa" {
type = "A"
ttl = 1
}
resource "cloudflare_record" "jakehowardtech_grafana" {
zone_id = cloudflare_zone.jakehowardtech.id
name = "grafana"
value = vultr_server.casey.main_ip
type = "A"
ttl = 1
}