mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Replaced enable_central_database by configuration in application
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{# This template needs to be included in docker-compose.yml containers which depend on a database and additional containers #}
|
||||
depends_on:
|
||||
{% if not enable_central_database | bool %}
|
||||
{% if not applications[application_id].database.central_storage | bool %}
|
||||
database:
|
||||
condition: service_healthy
|
||||
{% endif %}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{# This template needs to be included in docker-compose.yml containers, which depend on a database, redis and optional additional volumes #}
|
||||
depends_on:
|
||||
{% if not enable_central_database | bool %}
|
||||
{% if not applications[application_id].database.central_storage | bool %}
|
||||
database:
|
||||
condition: service_healthy
|
||||
{% endif %}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{# This template needs to be included in docker-compose.yml containers, which just depend on a database #}
|
||||
{% if not enable_central_database | bool %}
|
||||
{% if not applications[application_id].database.central_storage | bool %}
|
||||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{# This template needs to be included in docker-compose.yml containers #}
|
||||
networks:
|
||||
{% if enable_central_database | bool and database_type is defined %}
|
||||
{% if applications[application_id].database.central_storage | bool and database_type is defined %}
|
||||
central_{{ database_type }}:
|
||||
{% endif %}
|
||||
{% if applications[application_id].ldap_enabled|default(false)|bool and applications.ldap.openldap.network.local|bool %}
|
||||
|
Reference in New Issue
Block a user