mirror of
https://github.com/status-im/consul.git
synced 2025-02-27 04:40:41 +00:00
Co-authored-by: R.B. Boyer <4903+rboyer@users.noreply.github.com> Co-authored-by: R.B. Boyer <rb@hashicorp.com> Co-authored-by: Freddy <freddygv@users.noreply.github.com>
26 lines
595 B
Cheetah
26 lines
595 B
Cheetah
resource "docker_container" "{{.Node.DockerName}}-{{.Service.ID.TFString}}" {
|
|
name = "{{.Node.DockerName}}-{{.Service.ID.TFString}}"
|
|
network_mode = "container:${docker_container.{{.PodName}}.id}"
|
|
image = docker_image.{{.EnvoyImageResource}}.latest
|
|
restart = "on-failure"
|
|
|
|
{{- range $k, $v := .Labels }}
|
|
labels {
|
|
label = "{{ $k }}"
|
|
value = "{{ $v }}"
|
|
}
|
|
{{- end }}
|
|
|
|
volumes {
|
|
volume_name = "{{.TLSVolumeName}}"
|
|
container_path = "/consul/config/certs"
|
|
read_only = true
|
|
}
|
|
|
|
command = [
|
|
{{- range .Command }}
|
|
"{{.}}",
|
|
{{- end }}
|
|
]
|
|
}
|