mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Restructured code and matrix rol
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# 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 %}
|
||||
database:
|
||||
condition: service_healthy
|
||||
{% endif %}
|
||||
{{ "\n" }}
|
@@ -0,0 +1,9 @@
|
||||
# This template needs to be included in docker-compose.yml contaienrs, which depend on a database, redis and optional additional volumes
|
||||
depends_on:
|
||||
{% if not enable_central_database | bool %}
|
||||
database:
|
||||
condition: service_healthy
|
||||
{% endif %}
|
||||
redis:
|
||||
condition: service_healthy
|
||||
{{ "\n" }}
|
@@ -0,0 +1,7 @@
|
||||
# This template needs to be included in docker-compose.yml contaienrs, which just depend on a database
|
||||
{% if not enable_central_database | bool %}
|
||||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
{% endif %}
|
||||
{{ "\n" }}
|
7
templates/docker/container/networks.yml.j2
Normal file
7
templates/docker/container/networks.yml.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
# This template needs to be included in docker-compose.yml containers
|
||||
networks:
|
||||
{% if enable_central_database | bool %}
|
||||
central_{{ database_type }}:
|
||||
{% endif %}
|
||||
default:
|
||||
{{ "\n" }}
|
Reference in New Issue
Block a user