Spaces:
Sleeping
Sleeping
Commit History
-
feat: add Dockerfile and improve docker-compose configuration
- Add Dockerfile based on python:3.12-slim for containerizing the API - Add .dockerignore to exclude unnecessary files from build context - Switch postgres_data volume to named volume in docker-compose.yamldfe2f13
-
feat: add PostgreSQL database layer with SQLAlchemy ORM
- Add Employee and Prediction SQLAlchemy models (app/db/models.py) - Add database session/engine configuration from env vars (app/db/session.py) - Add script to create database and tables if not exists (scripts/create_db.py) - Add docker-compose with PostgreSQL + pgAdmin services - Update .env.example with DB_* connection variables - Add psycopg2-binary, SQLAlchemy, greenlet to requirements.txt - Document database schema, UML diagram and column constraints in READMEa194bc8