Files
kennethreitz.org/docker-compose.yml
T
kennethreitz f50dad4574 Switch to uvicorn, fix breadcrumbs for all content pages
- Replace gunicorn/gevent with uvicorn for ASGI support
- Add asgiref to wrap Flask WSGI app for uvicorn compatibility
- Enable auto-reload in docker-compose for development
- Add current_path to all content render_template calls
- Simplify breadcrumb template to exclude current page
- Only show breadcrumbs for nested paths (> 1 segment)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 16:58:17 -05:00

16 lines
476 B
YAML

services:
web:
build: .
ports:
- "8000:8000"
volumes:
- ./data:/app/data
- ./tuftecms:/app/tuftecms
- ./engine.py:/app/engine.py
environment:
- FLASK_ENV=development
- DISABLE_ANALYTICS=true
restart: unless-stopped
# Use uvicorn with auto-reload for development
command: ["uvicorn", "engine:app", "--host", "0.0.0.0", "--port", "8000", "--reload", "--reload-dir", "/app/tuftecms", "--reload-dir", "/app/data"]