feat: add option for external docker networks
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2021-03-14 16:14:51 +01:00
parent 637188902a
commit e8788e441f
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@ zigbee2mqtt_service_stopped: False
# - name: default
# # optional network driver, defaults to 'bride'
# driver: host
# external: false
# @end
zigbee2mqtt_networks:
- name: default

View File

@ -81,6 +81,10 @@ volumes:
networks:
{% for network in zigbee2mqtt_networks %}
{{ network.name }}:
{% if network.external | default(False) | bool %}
external: true
{% else %}
driver: {{ network.backend | default("bridge") }}
{% endif %}
{% endfor %}
{% endif %}