mirror of
https://github.com/ZTatman/myst.git
synced 2026-11-21 04:17:59 +00:00
- Move get_db to main.py for cleaner separation of concerns - Remove engine/sessionmaker from database.py (keep only Base class) - Fix config.py: add +asyncpg to database_url, remove @dataclass - Add lifespan context manager for engine lifecycle - Add docker-compose.yml for web + postgres services - Add web/Dockerfile for containerized FastAPI app - Add web/.env.example as environment template
9 lines
No EOL
179 B
Text
9 lines
No EOL
179 B
Text
# Application
|
|
APP_NAME=Myst
|
|
|
|
# Database (Docker Compose auto-configures this)
|
|
DATABASE_URL=postgresql+asyncpg://myst:myst@db:5432/myst_db
|
|
|
|
# Forgejo
|
|
FORGEJO_BASE_URL=
|
|
FORGEJO_PAT= |