2025-02-21 05:06:39 +01:00
|
|
|
database_instance: "{{ 'central-' + database_type if applications[application_id].database.central_storage | bool else application_id }}"
|
|
|
|
database_host: "{{ 'central-' + database_type if applications[application_id].database.central_storage | bool else 'database' }}"
|
2025-02-04 18:14:37 +01:00
|
|
|
database_name: "{{ application_id }}"
|
|
|
|
database_username: "{{ application_id }}"
|
|
|
|
database_port: "{{ 3306 if database_type == 'mariadb' else 5432 }}"
|
2025-02-21 06:32:12 +01:00
|
|
|
database_env: "{{docker_compose.directories.env}}{{database_type}}.env"
|
|
|
|
|
|
|
|
# Don't set application_id . It would conflict with central database logic
|