diff options
-rw-r--r-- | terraform/concourse/concourse.tf | 12 | ||||
-rw-r--r-- | terraform/conflatorio-docker/traefik.tf | 11 |
2 files changed, 19 insertions, 4 deletions
diff --git a/terraform/concourse/concourse.tf b/terraform/concourse/concourse.tf index c386e91..fc5e526 100644 --- a/terraform/concourse/concourse.tf +++ b/terraform/concourse/concourse.tf @@ -2,12 +2,16 @@ data "docker_network" "traefik" { name = "traefik" } -resource "docker_image" "concourse" { - name = "concourse/concourse:7.8.3" +data "docker_network" "bridge" { + name = "bridge" +} + +resource "docker_image" "concourse-7_9_0" { + name = "concourse/concourse:7.9.0" } resource "docker_container" "concourse" { - image = docker_image.concourse.image_id + image = docker_image.concourse-7_9_0.image_id name = "concourse" privileged = true must_run = false @@ -19,7 +23,7 @@ resource "docker_container" "concourse" { } networks_advanced { - name = "bridge" + name = data.docker_network.bridge.name } ports { diff --git a/terraform/conflatorio-docker/traefik.tf b/terraform/conflatorio-docker/traefik.tf index 83adac3..46d4671 100644 --- a/terraform/conflatorio-docker/traefik.tf +++ b/terraform/conflatorio-docker/traefik.tf @@ -1,5 +1,16 @@ resource "docker_network" "traefik" { name = "traefik" +# ipv6 = true + + ipam_config { + gateway = "172.20.0.1" + subnet = "172.20.0.0/16" + } + +# ipam_config { +# subnet = "fd00:dead:beef::/48" +# gateway = "fd00:dead:beef::1" +# } } resource "docker_image" "traefik" { |