Force pooler in session mode

This commit is contained in:
Daniel Berteaud 2024-01-13 14:23:22 +01:00
parent 077c893ac5
commit fd84e0ad42
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,8 @@ immich:
database: '[[ .instance ]]'
user: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .instance ]]" }}{{ .Data.username }}{{ end }}'
password: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .instance ]]" }}{{ .Data.password }}{{ end }}'
pooler:
mode: session
# API server settings
server:
@ -21,7 +23,6 @@ immich:
# Additional env to set ni the container
env:
#DB_URL: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .instance ]]" }}postgres://{{ .Data.username }}:{{ urlquery .Data.password }}@localhost:5432/[[ .instance ]]{{ end }}'
NODE_OPTIONS: --max-old-space-size={{ env "NOMAD_MEMORY_LIMIT" }}
vault: