mirror of
https://github.com/Dokploy/templates.git
synced 2026-05-08 01:29:11 -05:00
[PR #755] feat: add Weblate template #4234
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/755
Author: @enigma972
Created: 3/26/2026
Status: 🔄 Open
Base:
canary← Head:weblate📝 Commits (10+)
f2c576dfeat: add Weblate template9bfe810chore: add db health check9502f8efeat: cleanupe29916fchore: fix config file7983f40chore: remove compose default config626fdcachore: fix weblate versionbe412bcchore: run dedupe-and-sort-metae805d62Update blueprints/weblate/docker-compose.ymlebb2ba9chore: remove config.mountsfc41864Update blueprints/weblate/docker-compose.yml📊 Changes
4 files changed (+148 additions, -18 deletions)
View changed files
➕
blueprints/weblate/docker-compose.yml(+74 -0)➕
blueprints/weblate/template.toml(+56 -0)➕
blueprints/weblate/weblate.svg(+1 -0)📝
meta.json(+17 -18)📄 Description
What is this PR about?
New PR of Weblate
Checklist
Before submitting this PR, please make sure that:
Greptile Summary
This PR adds a new Weblate template (localization/translation platform) to the blueprint collection. The overall structure is solid — Docker images are pinned to specific versions, secrets use Dokploy helpers,
read_only: trueis applied for security, and a database healthcheck is included. Themeta.jsonentry is well-formed with the correct version matching the image tag.Key issues found:
docker-compose.ymlline 36–38):depends_onforcacheanddatabasedoes not usecondition: service_healthy, so Weblate can attempt to connect to PostgreSQL before it has finished initializing. The database healthcheck is defined but not wired into the dependency condition.docker-compose.ymlline 53): The volume is mounted at/var/lib/postgresqlrather than the conventional/var/lib/postgresql/data. Data is still persisted, but it's broader than necessary and deviates from the recommended pattern.databaseservice (docker-compose.ymllines 59–60):POSTGRES_HOSTandPOSTGRES_PORTare Weblate client-side variables; the PostgreSQL image does not recognise them and they should be removed from the database service block.Confidence Score: 4/5
Template is largely correct and well-structured; one startup-reliability fix recommended before merge.
The template is well-constructed with pinned images, proper secrets handling, and security hardening. The only meaningful functional concern is that
depends_ondoes not usecondition: service_healthy, which can cause Weblate to start before PostgreSQL is ready — Weblate does have retry logic so this often recovers, but it is better practice to wire the dependency correctly. The remaining notes are minor style improvements.blueprints/weblate/docker-compose.yml— thedepends_onand volume path items deserve a second look.Important Files Changed
/var/lib/postgresql/data, andPOSTGRES_HOST/POSTGRES_PORTare unnecessarily set on the database service. One functional concern:depends_ondoes not leverage the database healthcheck, so Weblate may attempt to connect before Postgres is ready.${password:32}helper, domain uses${domain}helper, and the port 8080 matches the Weblate image default.dedupe-and-sort-meta.jsand remains present in the file at a different position.Reviews (1): Last reviewed commit: "chore: remove config.mounts" | Re-trigger Greptile
(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!
Context used:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.