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:
8
templates/docker/compose/networks.yml.j2
Normal file
8
templates/docker/compose/networks.yml.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
# This template needs to be included in docker-compose.yml
|
||||
networks:
|
||||
{% if enable_central_database | bool %}
|
||||
central_{{ database_type }}:
|
||||
external: true
|
||||
{% endif %}
|
||||
default:
|
||||
{{ "\n" }}
|
6
templates/docker/compose/volumes-just-database.yml.j2
Normal file
6
templates/docker/compose/volumes-just-database.yml.j2
Normal file
@@ -0,0 +1,6 @@
|
||||
# This needs to be included in docker-compose.yml which just contain a database volume
|
||||
{% if not enable_central_database | bool %}
|
||||
volumes:
|
||||
database:
|
||||
{% endif %}
|
||||
{{ "\n" }}
|
6
templates/docker/compose/volumes.yml.j2
Normal file
6
templates/docker/compose/volumes.yml.j2
Normal file
@@ -0,0 +1,6 @@
|
||||
# This template needs to be included in docker-compose.yml which contain a database and additional volumes
|
||||
volumes:
|
||||
{% if not enable_central_database | bool %}
|
||||
database:
|
||||
{% endif %}
|
||||
{{ "\n" }}
|
Reference in New Issue
Block a user