nebula/monitoring/transmission.tf

24 lines
543 B
Terraform
Raw Normal View History

2018-01-06 10:25:39 +00:00
# Transmission Exporter for prometheus
# https://github.com/metalmatze/transmission-exporter
2018-02-09 20:56:31 +00:00
2018-01-06 10:25:39 +00:00
resource docker_container "transmission-exporter" {
name = "transmission-exporter"
image = "${docker_image.transmission-exporter.latest}"
2018-02-04 10:36:20 +00:00
links = ["${var.transmission}"]
2018-01-06 10:25:39 +00:00
2018-02-09 20:56:31 +00:00
ports {
internal = 19091
external = 19091
ip = "${var.ips["eth0"]}"
}
2018-01-06 10:25:39 +00:00
env = [
2018-02-09 20:56:31 +00:00
"TRANSMISSION_ADDR=http://${var.transmission}:9091",
2018-01-06 10:25:39 +00:00
]
restart = "unless-stopped"
destroy_grace_seconds = 10
must_run = true
}