commit 66d681279e13243e73e201a47a923126075f1fe4 Author: OpenClaw Bot Date: Sat Mar 21 13:14:54 2026 +0100 feat: split diarization UI into separate project folder diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..0149f34 --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +API_BASE=http://diarization-api:8093 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f233752 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM nginx:alpine + +COPY index.html.template /usr/share/nginx/html/index.html.template +COPY docker-entrypoint.sh /docker-entrypoint.sh +RUN chmod +x /docker-entrypoint.sh + +EXPOSE 80 +CMD ["/docker-entrypoint.sh"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..837f4df --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# diarization-ui + +Separate UI container for the diarization/transcription API. + +## Run + +```bash +docker compose up -d --build +``` + +UI will be available on `http://127.0.0.1:8094/`. + +By default it calls API at `http://diarization-api:8093`. +Set `API_BASE` in `.env` if needed. + +## .env + +```env +API_BASE=http://diarization-api:8093 +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4d55670 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +services: + diarization-ui: + build: + context: ./web-ui + dockerfile: Dockerfile + container_name: diarization-ui + restart: unless-stopped + ports: + - "8094:80" + environment: + - API_BASE=${API_BASE:-http://diarization-api:8093} diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh new file mode 100644 index 0000000..b08bfa8 --- /dev/null +++ b/docker-entrypoint.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh +set -eu + +API_BASE="${API_BASE:-http://diarization-api:8093}" +sed "s|__API_BASE__|${API_BASE}|g" /usr/share/nginx/html/index.html.template > /usr/share/nginx/html/index.html + +exec nginx -g 'daemon off;' diff --git a/index.html.template b/index.html.template new file mode 100644 index 0000000..9dba953 --- /dev/null +++ b/index.html.template @@ -0,0 +1,50 @@ + + + + + + Diarization + Whisper UI + + + +

Whisper + Sprechertrennung

+

API:

+
+ + +
+

+
+  
+
+