mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-15 08:30:46 +02:00
Solved database naming bug
This commit is contained in:
parent
90ad688ca9
commit
dfd7be9d72
@ -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
|
||||
|
@ -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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user