add postgres

This commit is contained in:
2026-04-07 23:48:47 +03:00
parent 4fff4bebaf
commit 3d29e1f84e
8 changed files with 326 additions and 12 deletions

View File

@@ -14,4 +14,15 @@ docker compose up --build
### Configuration
- **Ollama**: backend uses `OLLAMA_API_URL` (set in `docker-compose.yml`)
- **Frontend → backend**: frontend uses `BACKEND_URL` (defaults to `http://backend:8000/generate`)
- **Frontend → backend**: frontend uses `BACKEND_BASE_URL` (defaults to `http://backend:8000`)
### Auth + Postgres
Backend uses Postgres at `POSTGRES_HOST` (currently set to `10.10.10.167`) and creates tables automatically on startup.
Set these env vars in `docker-compose.yml` (or override via `.env`):
- `POSTGRES_DB`: `devops_portal`
- `POSTGRES_USER`: `devops_portal`
- `POSTGRES_PASSWORD`: set your real password
- `JWT_SECRET`: set a long random secret (required for token security)