From 66ae57a3c5ebd250a353f63703e1a9c73205e281 Mon Sep 17 00:00:00 2001 From: Nemo Date: Fri, 11 May 2018 19:45:26 +0530 Subject: [PATCH] Adds got visualizations - https://twitter.com/tocttou/status/994942857214603265 - https://ashishchaudhary.in/game-of-thrones-visualization --- docker/got.tf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docker/got.tf diff --git a/docker/got.tf b/docker/got.tf new file mode 100644 index 0000000..b047a6c --- /dev/null +++ b/docker/got.tf @@ -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 +}