Add Didacta template - #1520
Open
va360labs wants to merge 1 commit into
Open
Conversation
✅ Deploy Preview for easypanel-templates ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Didacta is a fair-code self-hosted LMS: multi-tenant isolation enforced with PostgreSQL RLS, public course catalog with checkout, enrollment and invitation flows, gamification, certificates and a module marketplace. The Postgres service pins pgvector/pgvector:pg16 on purpose: the baseline migration runs CREATE EXTENSION "vector" and fails against the default image. Only port 3000 is exposed. The container runs the API on :4000 and the web on :3000, and Next.js rewrites /api/*, /healthz and /readyz to the internal API, so one domain covers both.
va360labs
force-pushed
the
add-didacta-template
branch
from
August 12, 2026 14:22
7f65f9b to
fa968ea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Didacta — a fair-code, self-hosted LMS: course authoring, a public catalog with checkout, enrollment and invitation flows, gamification, certificates, reporting and a module marketplace. Tenants are isolated at the database level with PostgreSQL RLS.
Three services: the app, a Postgres and a Redis.
Why Postgres pins an image.
pgvector/pgvector:pg16is not a preference: the baseline migration runsCREATE EXTENSION "vector", so the defaultpostgres:17fails on first boot with no obvious clue.One domain is enough. The container runs the API on
:4000and the web on:3000, and Next.js rewrites/api/*,/healthzand/readyzto the internal API — sodomainsonly targets port 3000, and there is no CORS or cookie-domain setup to do.First-run link.
DIDACTA_SETUP_TOKENis generated withrandomString(32). It protects the creation of the first admin account while the instance is still empty, and generating it here means the user openshttps://<domain>/setup?token=<DIDACTA_SETUP_TOKEN>(it's in the Environment tab) instead of digging it out of the container logs. That's whatinstructionsinmeta.yamlexplains.TENANT_SETTINGS_ENC_KEYis deliberately left unset: the app generates a 32-byte hex key on first boot and persists it in thedatavolume. Setting it from the template with a generator that does not produce exactly 64 hex characters would break secret encryption (SSO, per-tenant SMTP, Stripe) silently.Links: didacta.io · docs · source · image
ghcr.io/va360labs/didacta-community(public, no login required).Checklist
randomString.templateSchemafromutils/schema.ts.Testing
The stack behind this template was brought up end to end (same image, same topology, same environment variables):
GET /healthzandGET /api/v1/setup/statusanswered through port 3000, confirming one domain covers both the web app and the API./setup?token=…link worked as described ininstructions.Screenshot