Skip to content

feat: add Dockerfile, docker-compose, and self-hosting guide#374

Merged
manojbajaj95 merged 1 commit into
mainfrom
feature/docker-self-hosting
Jun 2, 2026
Merged

feat: add Dockerfile, docker-compose, and self-hosting guide#374
manojbajaj95 merged 1 commit into
mainfrom
feature/docker-self-hosting

Conversation

@manojbajaj95
Copy link
Copy Markdown
Collaborator

Summary

  • Dockerfile — three-stage build: ui-builder (Node 24 + pnpm compiles the Next.js dashboard), py-builder (uv builds the Python wheel), runtime (slim Python 3.13, non-root authsome user)
  • docker-compose.yml — single service, named volume at /data/authsome, restart: unless-stopped, commented Caddy/Traefik TLS snippet
  • .dockerignore — excludes .git, node_modules, dist/, test files, and editor artefacts to keep build context small
  • docs/guides/self-hosting.md — quick-start, full env-var reference, volume backup/restore, TLS with Caddy, local build instructions
  • .github/workflows/docker.yml — CI job that builds the image (no push) on every PR and push, with GHA layer cache
  • README.md — new "Self-hosting" section with a two-line quick-start pointing to the guide

Test plan

  • docker build -t authsome:local . completes without errors
  • docker compose up -d starts the daemon; curl http://localhost:7998/health returns 200
  • Volume persists across docker compose down && docker compose up -d
  • CI Docker build job is green on this PR

Closes #366

🤖 Generated with Claude Code

Enables single-command self-deployment of the authsome daemon in a
container without requiring Python or uv on the host.

- Multi-stage Dockerfile: ui-builder (Node 24/pnpm) → py-builder (uv
  wheel) → slim Python 3.13 runtime, non-root authsome user
- docker-compose.yml with named volume and restart: unless-stopped
- .dockerignore to keep the build context minimal
- docs/guides/self-hosting.md covering quick-start, env vars, volume
  backup/restore, TLS with Caddy, and local builds
- .github/workflows/docker.yml CI job that builds the image on every PR
- README.md self-hosting quick-start section

Closes #366

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@manojbajaj95 manojbajaj95 merged commit c7455c0 into main Jun 2, 2026
5 checks passed
@manojbajaj95 manojbajaj95 deleted the feature/docker-self-hosting branch June 2, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: easy self-deployment with Dockerfile and Docker Compose

1 participant