Solved database naming bug

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-07 15:11:45 +02:00
parent 90ad688ca9
commit dfd7be9d72
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,8 @@
# This template needs to be included in docker-compose.yml, which depend on a mariadb database
{# This template needs to be included in docker-compose.yml, which depend on a mariadb database #}
{% if not applications | get_app_conf(application_id, 'features.central_database', False) %}
{{ database_host }}:
container_name: {{application_id}}-database
container_name: {{ application_id | get_entity_name }}-database
logging:
driver: journald
image: mariadb

View File

@ -1,8 +1,9 @@
# This template needs to be included in docker-compose.yml, which depend on a postgres database
{# This template needs to be included in docker-compose.yml, which depend on a postgres database #}
{% if not applications | get_app_conf(application_id, 'features.central_database', False) %}
{{ database_host }}:
image: postgres:{{applications['svc-db-postgres'].version}}-alpine
container_name: {{application_id}}-database
container_name: {{ application_id | get_entity_name }}-database
env_file:
- {{database_env}}
restart: {{docker_restart_policy}}