mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-15 14:52:05 -05:00
[PR #999] [MERGED] fix(logto): fix postgres role error and update to current version #16307
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Dokploy/templates/pull/999
Author: @Siumauricio
Created: 7/14/2026
Status: ✅ Merged
Merged: 7/14/2026
Merged by: @Siumauricio
Base:
canary← Head:fix/logto-update📝 Commits (1)
7ed8450fix(logto): fix postgres role error and update to 1.41.0📊 Changes
3 files changed (+8 additions, -12 deletions)
View changed files
📝
blueprints/logto/docker-compose.yml(+5 -9)📝
blueprints/logto/meta.json(+1 -1)📝
blueprints/logto/template.toml(+2 -2)📄 Description
Problem
Issue #130 reports the Logto template logs
FATAL: role "postgres" does not existand ships an outdated version.Root cause
The upstream Logto compose uses
POSTGRES_USER: postgres, so its barepg_isreadyhealthcheck works there. Our template overrides the user tologtobut kept the bare healthcheck, so every probe (running as OS userpostgresdue touser: postgres) tried to connect as the non-existentpostgresrole, spamming the FATAL error on every healthcheck interval.Changes
pg_isready -U logto -d logtoso it probes the actual role/database; also setPOSTGRES_DB: logtoexplicitly. No more FATAL log spam.ghcr.io/logto-io/logto1.27.0 → 1.41.0 (current latest release),meta.jsonupdated.LOGTO_ENDPOINTwas pointing at the admin domain; it now points at the main domain (admin console stays onADMIN_ENDPOINT).${password:32}, removed theports:entries that published ephemeral host ports (Traefik routes over the docker network), removeduser: postgres, addedrestart: unless-stopped.Verification (deployed on a Dokploy instance)
donein ~120s, both containers running, postgres reports healthy (healthcheck passing with thelogtorole — the source of the FATAL spam is gone).app:3001):/→ HTTP 200/302 as expected,/api/status→ 204 (Logto health OK).app:3002):/console→ 200, redirects to/console/welcome(fresh-install onboarding), confirmingTRUST_PROXY_HEADER/endpoint config works behind the proxy.node build-scripts/generate-meta.js --check→ 476 templates validated.Closes #130
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.