mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented variable mapping to reduce complexity
This commit is contained in:
@@ -9,7 +9,7 @@ services:
|
||||
- .:/usr/share/nginx/html
|
||||
- .:/var/www
|
||||
depends_on:
|
||||
{% if not ( enable_central_database | lower | bool ) %}
|
||||
{% if not enable_central_database %}
|
||||
- database
|
||||
{% endif %}
|
||||
- maildev
|
||||
@@ -20,7 +20,7 @@ services:
|
||||
worker:
|
||||
image: attendize_worker:latest
|
||||
depends_on:
|
||||
{% if not ( enable_central_database | lower | bool ) %}
|
||||
{% if not enable_central_database %}
|
||||
- database
|
||||
{% endif %}
|
||||
- maildev
|
||||
@@ -36,7 +36,7 @@ services:
|
||||
|
||||
{% include 'templates/docker-redis-service.yml.j2' %}
|
||||
|
||||
{% if not ( enable_central_database | lower | bool ) %}
|
||||
{% if not enable_central_database %}
|
||||
depends_on:
|
||||
- database
|
||||
|
||||
@@ -45,6 +45,6 @@ services:
|
||||
|
||||
volumes:
|
||||
redis:
|
||||
{% if not ( enable_central_database | lower | bool ) %}
|
||||
{% if not enable_central_database %}
|
||||
database:
|
||||
{% endif %}
|
Reference in New Issue
Block a user