add postgres
This commit is contained in:
13
readme.md
13
readme.md
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user