Conversation
…zer/data for SQLite
lakhansamani
added a commit
to authorizerdev/docs
that referenced
this pull request
Nov 26, 2026
…ker volume (#105) * docs: Postgres schema via search_path, magic link flow, root-less Docker volume - databases: document --database-url ...&search_path=<schema> (verified on Postgres 16: all authorizer_* and OpenFGA tables land in the schema, public untouched; schema must exist beforehand) (authorizerdev/authorizer#178) - graphql-api/endpoints: full magic link flow — required flags, redirect_uri precedence and validation, emailed link shape, /verify_email behaviour (session cookie, no tokens in URL per GHSA-44vr-f829-xfch), getSession example, MFA redirect, and current limitations (code not redeemable, --redirect-uris exact match) (authorizerdev/authorizer#406) - docker: root-less named volume at /authorizer/data from v2.4.9 (authorizerdev/authorizer#930), -u root for older images, docker-compose * docs(docker): fix compose example to mount the volume at /authorizer/data * docs(magic-link): document the v2.4.9 fixes (redeemable /verify_email code, exact redirect URIs, encoded links)
This was referenced Nov 26, 2026
Merged
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.
Refs #325
Problem
The root
docker-compose.yamlcould not start a v2 server. It only didenv_file: - .env, but v2 is configured purely through CLI flags (nothing incmd/orinternal/configreads environment variables) and the image runsENTRYPOINT ["./authorizer"]withCMD [].docker compose uptherefore booted with no flags and died withclient ID missing in rootArgs(cmd/root.go:702), or failed earlier when no.envfile existed.Fix
docker-compose.yaml: the required flags now live incommand:(SQLite on a named volume, URL, client id/secret, admin secret, HS256 JWT secret, encryption key). Every secret is an obviouschange-me-*placeholder, with a header comment saying it is for local development only. Dropped the obsoleteversion:key.Dockerfile: pre-create/authorizer/databefore the existingchown, so a named volume mounted there inherits uid 1000 ownership and the non-root user can create the SQLite file. Before this, a named volume at a path the image didn't own was root-owned, and the docs had to recommend-u root.Verification
Built and ran the stack with
docker compose(host port overridden to 18080 to avoid local conflicts):/appand/dashboardreturn 200;/authorizer/data/authorizer.dbis created and owned byauthorizer(uid 1000), process runs as uid 1000;docker compose restart, healthy again,_usersstill returns the user (total 1), login works.Not included
The Caddy reverse-proxy example requested in #325, so this PR refs rather than closes it. Follow-up for the docs: the Docker page can drop the
-u rootworkaround for images built from this commit onward.