feat: add option for external docker networks
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
637188902a
commit
e8788e441f
@ -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
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user