docs(diarization-ui): add registry image deployment instructions incl traefik example
This commit is contained in:
75
README.md
75
README.md
@@ -5,6 +5,17 @@ Eigenes UI-Projekt (separates Repo/Container) für:
|
|||||||
- Aufruf von `transcribe-diarize` API
|
- Aufruf von `transcribe-diarize` API
|
||||||
- Speichern in SQLite
|
- Speichern in SQLite
|
||||||
- LLM-Auswertung via Ollama (Qwen)
|
- LLM-Auswertung via Ollama (Qwen)
|
||||||
|
- Projekte/Prompts/Dokumente verwalten
|
||||||
|
|
||||||
|
## Container Registry
|
||||||
|
|
||||||
|
Image ist veröffentlicht unter:
|
||||||
|
|
||||||
|
- `gitea.aquantico.lan/claw/diarization-ui:latest`
|
||||||
|
|
||||||
|
> Hinweis: Registry-Zertifikat ist self-signed. Ggf. `--tls-verify=false` (Podman) oder insecure registry konfigurieren.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## .env
|
## .env
|
||||||
|
|
||||||
@@ -12,9 +23,12 @@ Eigenes UI-Projekt (separates Repo/Container) für:
|
|||||||
API_BASE=http://gx10.aquantico.lan:8093
|
API_BASE=http://gx10.aquantico.lan:8093
|
||||||
OLLAMA_BASE_URL=http://gx10.aquantico.lan:11434
|
OLLAMA_BASE_URL=http://gx10.aquantico.lan:11434
|
||||||
OLLAMA_MODEL=qwen3.5:9b
|
OLLAMA_MODEL=qwen3.5:9b
|
||||||
|
DB_PATH=/data/ui.db
|
||||||
```
|
```
|
||||||
|
|
||||||
## Start (Docker/Compose)
|
---
|
||||||
|
|
||||||
|
## Lokal bauen/starten
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
@@ -23,17 +37,66 @@ docker compose up -d --build
|
|||||||
|
|
||||||
UI: `http://127.0.0.1:8094/`
|
UI: `http://127.0.0.1:8094/`
|
||||||
|
|
||||||
## Podman (einzelner Container)
|
---
|
||||||
|
|
||||||
|
## Deployment auf anderem Server (mit Registry-Image)
|
||||||
|
|
||||||
|
Beispiel `docker-compose.yml` (ähnlich zu deinem Gitea/Treafik-Setup):
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
diarization-ui:
|
||||||
|
image: gitea.aquantico.lan/claw/diarization-ui:latest
|
||||||
|
container_name: diarization-ui
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- API_BASE=http://gx10.aquantico.lan:8093
|
||||||
|
- OLLAMA_BASE_URL=http://gx10.aquantico.lan:11434
|
||||||
|
- OLLAMA_MODEL=qwen3.5:9b
|
||||||
|
- DB_PATH=/data/ui.db
|
||||||
|
volumes:
|
||||||
|
- diarization_ui_data:/data
|
||||||
|
ports:
|
||||||
|
- "8094:8094"
|
||||||
|
networks:
|
||||||
|
- traefik
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.diarization-ui.rule=Host(`claw.aquantico.lan`)"
|
||||||
|
- "traefik.http.routers.diarization-ui.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.diarization-ui.tls=true"
|
||||||
|
- "traefik.http.services.diarization-ui.loadbalancer.server.port=8094"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
diarization_ui_data:
|
||||||
|
```
|
||||||
|
|
||||||
|
Dann starten:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
podman build -t localhost/diarization-ui:latest .
|
docker compose pull
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Podman Pull/Run mit Registry-Image
|
||||||
|
|
||||||
|
```bash
|
||||||
|
podman login gitea.aquantico.lan --tls-verify=false
|
||||||
|
podman pull --tls-verify=false gitea.aquantico.lan/claw/diarization-ui:latest
|
||||||
podman rm -f diarization-ui || true
|
podman rm -f diarization-ui || true
|
||||||
podman run -d --name diarization-ui -p 18094:8094 \
|
podman run -d --name diarization-ui -p 18094:8094 \
|
||||||
-e API_BASE=http://gx10.aquantico.lan:8093 \
|
-e API_BASE=http://gx10.aquantico.lan:8093 \
|
||||||
-e OLLAMA_BASE_URL=http://gx10.aquantico.lan:11434 \
|
-e OLLAMA_BASE_URL=http://gx10.aquantico.lan:11434 \
|
||||||
-e OLLAMA_MODEL=qwen3.5:9b \
|
-e OLLAMA_MODEL=qwen3.5:9b \
|
||||||
|
-e DB_PATH=/data/ui.db \
|
||||||
-v diarization_ui_data:/data \
|
-v diarization_ui_data:/data \
|
||||||
localhost/diarization-ui:latest
|
gitea.aquantico.lan/claw/diarization-ui:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
UI dann: `http://127.0.0.1:18094/`
|
|
||||||
|
|||||||
Reference in New Issue
Block a user