Add Docker support

- Dockerfile: multi-stage Python 3.12 slim build
- docker-compose.yml: app + PostgreSQL 16 with healthcheck
- requirements.txt: fastapi, uvicorn, psycopg, passlib, jose
- .dockerignore: exclude venv, pycache, secrets
- app.py: env-based DB config (DB_HOST/PORT/NAME/USER/PASSWORD)
- README: Docker deploy instructions
This commit is contained in:
Jetour BI
2026-06-18 20:47:23 +00:00
parent 9ff9ec27e9
commit 3f6824d86c
7 changed files with 153 additions and 3 deletions

9
.dockerignore Normal file
View File

@@ -0,0 +1,9 @@
.venv/
__pycache__/
*.pyc
.env
.git
.gitignore
*.log
.dbpass
migrations/_migrations*