2024-01-03 11:38:09 +01:00
|
|
|
# This template needs to be included in docker-compose.yml
|
2024-01-02 21:13:34 +01:00
|
|
|
networks:
|
2025-01-11 15:39:30 +01:00
|
|
|
{% if enable_central_database | bool and database_type is defined %}
|
2024-01-05 20:22:34 +01:00
|
|
|
central_{{ database_type }}:
|
2024-01-02 21:13:34 +01:00
|
|
|
external: true
|
2025-01-30 12:14:18 +01:00
|
|
|
{% endif %}
|
2025-02-12 12:41:13 +01:00
|
|
|
{% if ldap_enabled | bool and applications.ldap.openldap.network.local | bool %}
|
2025-01-30 12:14:18 +01:00
|
|
|
central_ldap:
|
2025-02-06 17:15:33 +01:00
|
|
|
external: true
|
2024-01-02 21:13:34 +01:00
|
|
|
{% endif %}
|
2024-01-05 20:22:34 +01:00
|
|
|
default:
|
2025-02-04 16:43:34 +01:00
|
|
|
{% 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 %}
|
2024-01-04 11:36:55 +01:00
|
|
|
{{ "\n" }}
|