mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-19 15:04:23 +02:00
29 lines
839 B
Django/Jinja
29 lines
839 B
Django/Jinja
{# This template needs to be included in docker-compose.yml #}
|
|
networks:
|
|
{% if applications | get_app_conf(application_id, 'features.central_database', False) and database_type is defined %}
|
|
|
|
{{ applications[ 'svc-db-' ~ database_type ].network }}:
|
|
external: true
|
|
{% endif %}
|
|
{% if
|
|
applications | get_app_conf(application_id, 'features.ldap', False) and
|
|
applications | get_app_conf('svc-db-openldap', 'network.docker', False)
|
|
%}
|
|
svc-db-openldap:
|
|
external: true
|
|
{% endif %}
|
|
{% if application_id != 'svc-db-openldap' %}
|
|
default:
|
|
{% if
|
|
application_id in networks.local and
|
|
networks.local[application_id].subnet is defined
|
|
%}
|
|
name: {{ application_id }}
|
|
driver: bridge
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: {{networks.local[application_id].subnet}}
|
|
{% endif %}
|
|
{% endif %}
|
|
{{ "\n" }} |