docker: add conditional for environment section

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-03-14 13:08:06 +01:00
parent 1ee6568bad
commit 98a91cd311
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4

View File

@ -10,10 +10,12 @@ services:
max_attempts: 3
delay: '10s'
window: '60s'
{% if matterbridge_cont_env %}
environment:
{% for key,val in matterbridge_cont_env.items() %}
{{ key }}: '{{ val }}'
{% endfor %}
{% endif %}
volumes:
- '{{ matterbridge_cont_vol }}/data:/data'
- '{{ matterbridge_cont_vol }}/config:/config:ro'