Skip to content

Commit

Permalink
deployer: ensure the proxy/dns/pause containers do not continually ge…
Browse files Browse the repository at this point in the history
…t replaced due to a change in a docker default (hashicorp#21043)
  • Loading branch information
rboyer authored May 3, 2024
1 parent 8209b3f commit 8bea6cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resource "docker_container" "{{.DockerNetworkName}}-coredns" {
restart = "always"
dns = ["8.8.8.8"]

network_mode = "bridge"
networks_advanced {
name = docker_network.{{.DockerNetworkName}}.name
ipv4_address = "{{.IPAddress}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ports {
}
{{- end }}

network_mode = "bridge"
{{- range .Node.Addresses }}
networks_advanced {
name = docker_network.{{.DockerNetworkName}}.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resource "docker_container" "{{.DockerNetworkName}}-forwardproxy" {
internal = {{.InternalPort}}
}

network_mode = "bridge"
networks_advanced {
name = docker_network.{{.DockerNetworkName}}.name
ipv4_address = "{{.IPAddress}}"
Expand Down

0 comments on commit 8bea6cd

Please sign in to comment.