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
|
# - name: default
|
||||||
# # optional network driver, defaults to 'bride'
|
# # optional network driver, defaults to 'bride'
|
||||||
# driver: host
|
# driver: host
|
||||||
|
# external: false
|
||||||
# @end
|
# @end
|
||||||
zigbee2mqtt_networks:
|
zigbee2mqtt_networks:
|
||||||
- name: default
|
- name: default
|
||||||
|
@ -81,6 +81,10 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
{% for network in zigbee2mqtt_networks %}
|
{% for network in zigbee2mqtt_networks %}
|
||||||
{{ network.name }}:
|
{{ network.name }}:
|
||||||
|
{% if network.external | default(False) | bool %}
|
||||||
|
external: true
|
||||||
|
{% else %}
|
||||||
driver: {{ network.backend | default("bridge") }}
|
driver: {{ network.backend | default("bridge") }}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user