Nemo 2018-05-11 19:45:26 +05:30
parent 4c8486f6b9
commit 66ae57a3c5
1 changed files with 23 additions and 0 deletions

23
docker/got.tf Normal file
View File

@ -0,0 +1,23 @@
data "docker_registry_image" "gotviz" {
name = "tocttou/gotviz:latest"
}
resource "docker_image" "gotviz" {
name = "${data.docker_registry_image.gotviz.name}"
pull_triggers = ["${data.docker_registry_image.gotviz.sha256_digest}"]
}
resource "docker_container" "gotviz" {
name = "gotviz"
image = "${docker_image.gotviz.latest}"
labels = "${merge(
local.traefik_common_labels, map(
"traefik.port", 8080,
"traefik.frontend.rule","Host:got-relationships.${var.domain}"
))}"
restart = "unless-stopped"
destroy_grace_seconds = 60
must_run = true
}