mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-18 06:24:25 +02:00
Solved condition and tab bugs
This commit is contained in:
parent
f254c9711d
commit
a100c9e63d
@ -1,11 +1,11 @@
|
|||||||
{# Base template for all docker-compose.yml.j2 #}
|
{# Base template for all docker-compose.yml.j2 #}
|
||||||
services:
|
services:
|
||||||
{# Load Database #}
|
{# Load Database #}
|
||||||
{% if applications[application_id].docker.database.enabled | default(false) | bool %}
|
{% if applications[application_id].docker.services.database.enabled | default(false) | bool %}
|
||||||
{% include 'roles/docker-central-database/templates/services/main.yml.j2' %}
|
{% include 'roles/docker-central-database/templates/services/main.yml.j2' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# Load Redis #}
|
{# Load Redis #}
|
||||||
{% if applications[application_id].docker.redis.enabled | default(false) | bool %}
|
{% if applications[application_id].docker.services.redis.enabled | default(false) | bool %}
|
||||||
{% include 'roles/docker-redis/templates/service.yml.j2' %}
|
{% include 'roles/docker-redis/templates/service.yml.j2' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# Load OAuth2 Proxy #}
|
{# Load OAuth2 Proxy #}
|
||||||
|
@ -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 #}
|
{# This template needs to be included in docker-compose.yml containers, which depend on a database, redis and optional additional volumes #}
|
||||||
{% if applications | is_feature_enabled('central_database', application_id)
|
{% if applications | is_feature_enabled('central_database', application_id)
|
||||||
and not (applications[application_id].docker.redis.enabled
|
and not (applications[application_id].docker.services.redis.enabled
|
||||||
| default(false)
|
| default(false)
|
||||||
| bool) %}
|
| bool) %}
|
||||||
depends_on: []
|
depends_on: []
|
||||||
@ -10,7 +10,7 @@
|
|||||||
database:
|
database:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if applications[application_id].docker.redis.enabled | default(false) | bool %}
|
{% if applications[application_id].docker.services.redis.enabled | default(false) | bool %}
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user