mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
d630e629bd
- 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>
26 lines
592 B
YAML
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'
|