Files
kjvstudy.org/docker-compose.yml
T
kennethreitz d630e629bd Add nginx to docker-compose setup
- nginx.conf: docker-compose version (uses 'web:8001')
- nginx-prod.conf: production version (uses '127.0.0.1:8001')
- Separate nginx service in docker-compose
- uvicorn runs on port 8001, nginx exposes 8000

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 02:01:00 -05:00

26 lines
592 B
YAML

services:
nginx:
image: nginx:alpine
ports:
- "8000:8000"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./kjvstudy_org/static:/app/kjvstudy_org/static:ro
depends_on:
- web
restart: unless-stopped
web:
build: .
expose:
- "8001"
volumes:
- .:/app
- /app/.venv
environment:
- PYTHONUNBUFFERED=1
- PRELOAD_INTERLINEAR=true
- DISABLE_ANALYTICS=true
restart: unless-stopped
command: uv run uvicorn kjvstudy_org.server:app --host 0.0.0.0 --port 8001 --reload --reload-include '*.json'