Optimized mariadb

This commit is contained in:
2025-07-14 10:26:12 +02:00
parent 8161dd1b6d
commit 81ef808191
4 changed files with 59 additions and 44 deletions

View File

@@ -1,3 +1,11 @@
application_id: svc-db-mariadb
mariadb_hostname: "{{ applications | get_app_conf(application_id, 'hostname', True) }}"
mariadb_root_pwd: "{{ applications['svc-db-mariadb'].credentials.root_password }}"
application_id: svc-db-mariadb
mariadb_hostname: "{{ applications | get_app_conf(application_id,'hostname', True) }}"
mariadb_root_pwd: "{{ applications | get_app_conf(application_id,'credentials.root_password', True) }}"
mariadb_init: "{{ database_username is defined and database_password is defined and database_name is defined }}"
mariadb_subnet: "{{ networks.local['svc-db-mariadb'].subnet }}"
mariadb_network_name: "{{ applications | get_app_conf(application_id,'network', True) }}"
mariadb_volume: "{{ applications | get_app_conf(application_id,'docker.services.mariadb.volume', True) }}"
mariadb_image: "{{ applications | get_app_conf(application_id,'docker.services.mariadb.image','mariadb', True) }}"
mariadb_version: "{{ applications | get_app_conf(application_id,'docker.services.mariadb.version', True) }}"
mariadb_port: "{{ database_port | default(ports.localhost.database[ application_id ]) }}"