Skip to content

v0 infra: docker, compose, justfile, alembic, ci - #1

Merged
catalysync merged 137 commits into
mainfrom
feat/v0-infra
Apr 26, 2026
Merged

catalysync merged 137 commits into
mainfrom
feat/v0-infra

Conversation

@catalysync

@catalysync catalysync commented Apr 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

Bootstraps the project's runtime + dev infrastructure

  • Docker: multi-stage Dockerfile (uv-driven build, distroless-ish runtime, non-root, tini, healthcheck) + .dockerignore
  • Compose: docker-compose.yml with postgres 16, redis 7, opt-in app profile
  • Local DX: justfile (dev / serve / format / lint / typecheck / test / check / migrate / db-reset / docker-*)
  • Config: .env.example documenting every NAGARA_* knob
  • Migrations: alembic initialised; env.py pulls the DSN from nagara.config.settings; declarative Base lives in src/nagara/db/__init__.py with a stable naming convention
  • Quality: .pre-commit-config.yaml (ruff + ty + standard hygiene) + ty check step in CI
  • CI: docker.yml workflow builds multi-arch images and pushes to GHCR on main / tags

Test plan

  • just bootstrap brings up postgres + redis cleanly
  • just dev serves on 127.0.0.1:8000 with reload
  • just check (ruff format/check, ty, pytest) passes locally
  • uv run alembic check runs without import errors against a live db
  • docker build -t nagara:local . succeeds; container responds 200 on /health
  • docker compose --profile app up brings the full stack up
  • CI workflows green on this PR

@catalysync
catalysync merged commit 19724ff into main Apr 26, 2026
2 checks passed
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.

1 participant