container: set TZ variable
This commit is contained in:
@@ -2,3 +2,5 @@
|
|||||||
|
|
||||||
docker_host_user: false
|
docker_host_user: false
|
||||||
docker_volume_type: named
|
docker_volume_type: named
|
||||||
|
|
||||||
|
timezone: Etc/UTC
|
||||||
|
|||||||
@@ -117,3 +117,8 @@ argument_specs:
|
|||||||
type: list
|
type: list
|
||||||
required: false
|
required: false
|
||||||
elements: str
|
elements: str
|
||||||
|
timezone:
|
||||||
|
description: "Timezone set in the TZ env var"
|
||||||
|
type: str
|
||||||
|
required: false
|
||||||
|
default: Etc/UTC
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
mounts: "{{ docker_volume_definition }}"
|
mounts: "{{ docker_volume_definition }}"
|
||||||
published_ports: "{{ container_published_ports + docker_published_ports }}"
|
published_ports: "{{ container_published_ports + docker_published_ports }}"
|
||||||
labels: "{{ traefik_labels | default(omit) }}"
|
labels: "{{ traefik_labels | default(omit) }}"
|
||||||
env: "{{ docker_env | combine(docker_additional_env) }}"
|
env: "{{ docker_env | combine(docker_additional_env) | combine({'TZ': timezone}) }}"
|
||||||
entrypoint: "{{ docker_entrypoint | default(omit) }}"
|
entrypoint: "{{ docker_entrypoint | default(omit) }}"
|
||||||
restart_policy: always
|
restart_policy: always
|
||||||
network_mode: "{{ docker_network_mode | default(omit) }}"
|
network_mode: "{{ docker_network_mode | default(omit) }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user