Full-stack self-hosted band rehearsal platform: Backend (FastAPI + SQLAlchemy 2.0 async): - Auth with JWT (register, login, /me, settings) - Band management with Nextcloud folder integration - Song management with audio version tracking - Nextcloud scan to auto-import audio files - Band membership with link-based invite system - Song comments - Audio analysis worker (BPM, key, loudness, waveform) - Nextcloud activity watcher for auto-import - WebSocket support for real-time annotation updates - Alembic migrations (0001–0003) - Repository pattern, Ruff + mypy configured Frontend (React 18 + Vite + TypeScript strict): - Login/register page with post-login redirect - Home page with band list and creation form - Band page with member panel, invite link, song list, NC scan - Song page with waveform player, annotations, comment thread - Settings page for per-user Nextcloud credentials - Invite acceptance page (/invite/:token) - ESLint v9 flat config + TypeScript strict mode Infrastructure: - Docker Compose: PostgreSQL, Redis, API, worker, watcher, nginx - nginx reverse proxy for static files + /api/ proxy - make check runs all linters before docker compose build Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
612 B
Docker
23 lines
612 B
Docker
FROM python:3.12-slim AS base
|
|
WORKDIR /app
|
|
RUN pip install uv
|
|
|
|
FROM base AS development
|
|
COPY pyproject.toml .
|
|
RUN uv sync
|
|
COPY . .
|
|
CMD ["uv", "run", "uvicorn", "rehearsalhub.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
|
|
|
FROM base AS lint
|
|
COPY pyproject.toml .
|
|
RUN uv sync --frozen
|
|
COPY src/ src/
|
|
RUN uv run ruff check src/ && uv run mypy src/
|
|
|
|
FROM base AS production
|
|
COPY pyproject.toml .
|
|
RUN uv sync --no-dev --frozen || uv sync --no-dev
|
|
COPY . .
|
|
ENTRYPOINT ["sh", "entrypoint.sh"]
|
|
CMD ["uv", "run", "uvicorn", "rehearsalhub.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"]
|