mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 14:50:17 +00:00
57b4ed7dd9
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>
15 lines
422 B
YAML
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
|