mirror of https://github.com/status-im/consul.git
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:
parent
8209b3ff86
commit
8bea6cd82a
|
@ -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…
Reference in New Issue