Python (FastAPI) app template — z3k platform
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| .dockerignore | ||
| Dockerfile | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
Python (FastAPI) app template
A minimal FastAPI service for the z3k platform.
- Listens on
PORT(default8000), binds0.0.0.0. GET /health— liveness/readiness probe, returns{"status": "ok"}.GET /— greeting using theAPP_NAMEenv var.
Environment variables come from your app's Configuration tab in the console.
Edit the code and push to main — the platform builds and deploys it automatically.