You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
670 B

# Referred to https://github.com/stefanprodan/dockprom/blob/master/docker-compose.yml
resource "docker_container" "grafana" {
name = "grafana"
image = docker_image.grafana.latest
ports {
internal = 3000
external = 9000
ip = var.ips["tailscale_floyd"]
protocol = "tcp"
}
volumes {
host_path = "/data/grafana"
container_path = "/var/lib/grafana"
}
networks_advanced {
name = docker_network.monitoring.name
}
networks_advanced {
name = var.caddy_network_internal
}
user = "root"
restart = "unless-stopped"
destroy_grace_seconds = 30
must_run = true
}