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 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:

View file

@ -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
}