mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-03-29 20:43:32 +01:00
19 lines
671 B
Django/Jinja
19 lines
671 B
Django/Jinja
{# This template needs to be included in docker-compose.yml #}
|
|
networks:
|
|
{% if applications | get_database_central_storage(application_id) | bool and database_type is defined %}
|
|
central_{{ database_type }}:
|
|
external: true
|
|
{% endif %}
|
|
{% if applications[application_id].get('ldap', {}).get('enabled', false)|bool and applications.ldap.openldap.network.local|bool %}
|
|
central_ldap:
|
|
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" }} |