Files
kjvstudy.org/docker-compose.yml
kennethreitz 57b4ed7dd9 Switch from gunicorn/uvicorn to granian with Rust-level static file serving
Replaces gunicorn + uvicorn with granian across all entry points (Dockerfile,
docker-compose, main.py, sidecar script). Static files are now served directly
from granian's Rust layer, bypassing Python entirely for /static routes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 10:07:23 -04:00

15 lines
422 B
YAML

services:
web:
build: .
ports:
- "8000:8000"
volumes:
- .:/app
- /app/.venv
environment:
- PYTHONUNBUFFERED=1
- PRELOAD_INTERLINEAR=true
- DISABLE_ANALYTICS=true
restart: unless-stopped
command: uv run granian kjvstudy_org.server:app --interface asgi --host 0.0.0.0 --port 8000 --reload --static-path-route /static --static-path-mount /app/kjvstudy_org/static