Production-ready FastAPI service with incidents module, PostgreSQL-ready database wiring, Docker support, and a single canonical launch path.
- FastAPI
- SQLAlchemy
- PostgreSQL
- Alembic
- Docker / Docker Compose
- Pytest
pip install -r requirements.txt
uvicorn app.main:app --reloaddocker-compose -f docker-compose.prod.yml up --buildGET /healthGET /api/v1/infoGET /api/v1/incidentsPOST /api/v1/incidents
Main environment variable:
DATABASE_URL
Example for docker compose:
DATABASE_URL=postgresql://worknest:worknest@db:5432/worknestapp/main.pyis the only application entrypoint.requirements.txtis the only dependency file.README.mdis the only project readme.