{%- from "docker/map.jinja" import host with context -%} | |
[Service] | |
{%- if host.proxy.get('http') %} | |
Environment="HTTP_PROXY={{ host.proxy.http }}" | |
{%- endif -%} | |
{%- if host.proxy.get('https') %} | |
Environment="HTTPS_PROXY={{ host.proxy.https }}" | |
{%- endif -%} | |
{%- if host.proxy.get('no_proxy') %} | |
Environment="NO_PROXY={{ host.proxy.no_proxy|join(',') }}" | |
{%- endif -%} |