deployer: ensure the proxy/dns/pause containers do not continually get replaced due to a change in a docker default (#21043)

pull/20910/head
R.B. Boyer 7 months ago committed by GitHub
parent 8209b3ff86
commit 8bea6cd82a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

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

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

Loading…
Cancel
Save