Expose grafana
This commit is contained in:
parent
9d014cfa1c
commit
0902dd001e
2 changed files with 12 additions and 2 deletions
|
@ -5,14 +5,16 @@ services:
|
||||||
image: grafana/grafana:latest
|
image: grafana/grafana:latest
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
ports:
|
|
||||||
- 3000:3000
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./grafana:/var/lib/grafana
|
- ./grafana:/var/lib/grafana
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- grafana
|
- grafana
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.grafana.rule=Host(`grafana.jakehoward.tech`)
|
||||||
|
- traefik.http.routers.grafana.tls.certresolver=le
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
grafana:
|
grafana:
|
||||||
|
|
|
@ -147,3 +147,11 @@ resource "cloudflare_record" "jakehowardtech_contessa" {
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = 1
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue