Backport of deployer: ensure the proxy/dns/pause containers do not continually get replaced due to a change in a docker default into release/1.17.x (#21044)

backport of commit a3950321a3

Co-authored-by: R.B. Boyer <rb@hashicorp.com>
pull/21048/head
hc-github-team-consul-core 2024-05-03 13:50:42 -07:00 committed by GitHub
parent 0dc083b948
commit 4fcb509a5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View File

@ -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}}"

View File

@ -23,6 +23,7 @@ ports {
}
{{- end }}
network_mode = "bridge"
{{- range .Node.Addresses }}
networks_advanced {
name = docker_network.{{.DockerNetworkName}}.name

View File

@ -8,6 +8,7 @@ resource "docker_container" "{{.DockerNetworkName}}-forwardproxy" {
internal = {{.InternalPort}}
}
network_mode = "bridge"
networks_advanced {
name = docker_network.{{.DockerNetworkName}}.name
ipv4_address = "{{.IPAddress}}"