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

This commit is contained in:
R.B. Boyer 2024-05-03 15:21:43 -05:00 committed by GitHub
parent 8209b3ff86
commit 8bea6cd82a
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}}"