myst/docker-compose.yml
ZTatman d382ad348f feat(web): OAuth CSRF protection, refactor, and cleanup
- Add CSRF state parameter to Forgejo OAuth flow
- Refactor callback route into focused helper functions
- Remove unused FORGEJO_PAT config from web service
- Add pat_encrypted field to User model
- Fix circular imports with TYPE_CHECKING guards
- Fix session cookie not reaching browser (secure=True + response object)
- Add ruff linting/formatting to web project
- Add env_file to docker-compose for OAuth credentials
- Document OAuth setup steps in README
2026-05-15 13:40:50 -04:00

30 lines
No EOL
633 B
YAML

services:
web:
build:
context: ./web
dockerfile: Dockerfile
ports:
- "8000:8000"
env_file: ./web/.env
environment:
- DATABASE_URL=postgresql+asyncpg://myst:myst@db:5432/myst_db
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: myst
POSTGRES_PASSWORD: myst
POSTGRES_DB: myst_db
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U myst -d myst_db"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data: