If we want to override RESTART_POLICY we have to spell it with an underscore and not as RESTARTPOLICY. Also TIMEZONE doesn't really exist anymore, it's PHP_TZ and that is already covered by vars from Vault so no need to list it separately.
13 lines
418 B
Bash
13 lines
418 B
Bash
{% set VAULT_KEY = getenv("VAULT_KEY") %}
|
|
# This file is maintained by remco and populated with data from HashiCorp
|
|
# Vault. Changes not done in Vault will be reverted when file gets rendered.
|
|
|
|
{% for key in ls(VAULT_KEY|add:"/data") %}
|
|
{{key}}={{ getv(VAULT_KEY|add:"/data/"|add:key) }}
|
|
{% endfor %}
|
|
# When needed for temporary debugging
|
|
# ZBX_DEBUGLEVEL=4
|
|
|
|
# Other available defaults
|
|
# RESTART_POLICY=unless-stopped
|