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
|
||||
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:
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue