18 lines
511 B
Django/Jinja

# This template needs to be included in docker-compose.yml
networks:
{% if enable_central_database | bool and database_type is defined %}
central_{{ database_type }}:
external: true
{% endif %}
{% if ldap_network_enabled %}
central_ldap:
{% endif %}
default:
{% if application_id in networks.local and networks.local[application_id].subnet is defined %}
driver: bridge
ipam:
driver: default
config:
- subnet: {{networks.local[application_id].subnet}}
{% endif %}
{{ "\n" }}