service: Set secret target to secret name

This is a breaking change as it was previously prefixed with service
name
This commit is contained in:
uumas
2025-06-26 10:30:49 +03:00
parent 8f29c2815e
commit 2e14434c9f
3 changed files with 13 additions and 8 deletions

View File

@@ -13,8 +13,9 @@
- "{{ service_name }}"
container_secrets:
- name: "{{ _service_database_name }}"
target: "{{ service_database_type }}"
container_env:
POSTGRES_USER: "{{ service_name | replace('-', '_') }}"
POSTGRES_PASSWORD_FILE: "/run/secrets/{{ _service_database_name }}"
POSTGRES_PASSWORD_FILE: "/run/secrets/{{ service_database_type }}"
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=C --lc-ctype=C"
container_auto_update: "{{ service_auto_update }}"