Skip to content

Commit a15c0f2

Browse files
committed
adds support for external env files
1 parent ed6a606 commit a15c0f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

templates/docker-compose.yml.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ services:
134134
- {{ dns_entry }}
135135
{% endfor %}
136136
{% endif %}
137+
{% if container.env_file is defined %}
138+
env_file:
139+
{% for envfile in container.env_file %}
140+
- {{ envfile }}
141+
{% endfor %}
142+
{% endif %}
137143
{% if container.restart is defined %}
138144
restart: {{ container.restart }}
139145
{% endif %}

0 commit comments

Comments
 (0)