{# This template needs to be included in docker-compose.yml #} networks: {% if applications | is_feature_enabled('central_database',application_id) and database_type is defined %} {{ applications[ 'svc-db-' ~ database_type ].network }}: external: true {% endif %} {% if applications | is_feature_enabled('ldap',application_id) and applications['svc-db-openldap'].network.docker | bool %} svc-db-openldap: external: true {% 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" }}