mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Solved database feature naming bug
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
{# This template needs to be included in docker-compose.yml #}
|
||||
networks:
|
||||
{% if applications | is_feature_enabled('central_database',application_id) | bool and database_type is defined %}
|
||||
{% if applications | is_feature_enabled('central_database',application_id) and database_type is defined %}
|
||||
central_{{ database_type }}:
|
||||
external: true
|
||||
{% endif %}
|
||||
{% if applications[application_id].get('features', {}).get('ldap', false) | bool and applications.ldap.network.docker | bool %}
|
||||
{% if applications[application_id].get('features', {}).get('ldap', false) and applications.ldap.network.docker | bool %}
|
||||
central_ldap:
|
||||
external: true
|
||||
{% endif %}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{# This needs to be included in docker-compose.yml which just contain a database volume #}
|
||||
{% if not (applications[application_id].features.database | default(false)) | bool %}
|
||||
{% if not applications | is_feature_enabled('central_database',application_id) %}
|
||||
volumes:
|
||||
database:
|
||||
{% endif %}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{# This template needs to be included in docker-compose.yml which contain a database and additional volumes #}
|
||||
volumes:
|
||||
{% if not (applications[application_id].features.database | default(false)) | bool %}
|
||||
{% if not applications | is_feature_enabled('central_database',application_id) %}
|
||||
database:
|
||||
{% endif %}
|
||||
{{ "\n" }}
|
Reference in New Issue
Block a user