11 changed files with 156 additions and 24 deletions
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
# Picked up automatically by `vite` / `npm run dev` / `npm run dev:all` (development mode only). |
||||
# Paths are same-origin; vite.config.ts proxies them to Docker (see npm run dev:all). |
||||
VITE_PROXY_SERVER=/sites |
||||
VITE_READ_ALOUD_TTS_URL=/api/piper-tts |
||||
VITE_LANGUAGE_TOOL_URL=/api/languagetool |
||||
VITE_TRANSLATE_URL=/api/translate |
||||
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash |
||||
# One local command: Docker backends + Vite (Ctrl+C stops Vite; Docker keeps running). |
||||
set -euo pipefail |
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)" |
||||
cd "$ROOT" |
||||
export OG_PROXY_ALLOW_ORIGIN="${OG_PROXY_ALLOW_ORIGIN:-http://localhost:5173}" |
||||
mkdir -p .local-piper-data |
||||
bash "$ROOT/scripts/ensure-libretranslate-dirs.sh" |
||||
docker compose -f docker-compose.dev.yml --profile editor-tools --profile local-tts build piper-tts-proxy |
||||
docker compose -f docker-compose.dev.yml --profile editor-tools --profile local-tts up -d \ |
||||
og-proxy languagetool libretranslate piper-wyoming piper-tts-proxy |
||||
echo "[dev:all] Jumble=Vite (.env.development → /sites, /api/piper-tts, lab APIs) | og-proxy :8090 | Piper :9876" |
||||
exec npm run dev |
||||
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash |
||||
# Host dirs for LibreTranslate bind mounts must be writable by container UID 1032 (see docker-compose*.yml). |
||||
# Uses a one-shot Alpine container so you do not need sudo chown on the host. |
||||
set -euo pipefail |
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)" |
||||
mkdir -p "$ROOT/.local-libretranslate/share" "$ROOT/.local-libretranslate/cache" |
||||
docker run --rm \ |
||||
-v "$ROOT/.local-libretranslate/share:/s" \ |
||||
-v "$ROOT/.local-libretranslate/cache:/c" \ |
||||
alpine:3.20 chown -R 1032:1032 /s /c |
||||
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash |
||||
# One remote command from repo clone: silberengel/imwald-jumble + nip66 + wikistr og-proxy + wyoming-piper + |
||||
# imwald-piper-tts-proxy (built here; push silberengel/imwald-piper-tts-proxy:latest to Hub for pull-only hosts) + |
||||
# LanguageTool + LibreTranslate. Apache → 8089 / 8090 / 9876. |
||||
set -euo pipefail |
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)" |
||||
cd "$ROOT" |
||||
bash "$ROOT/scripts/ensure-libretranslate-dirs.sh" |
||||
COMPOSE=(docker compose -f docker-compose.prod.yml --profile stack --profile editor-tools) |
||||
# Pull Hub images only; piper-tts-proxy is built from this repo (push silberengel/imwald-piper-tts-proxy:latest when ready). |
||||
"${COMPOSE[@]}" pull jumble jumble-nip66-monitor og-proxy piper-wyoming languagetool libretranslate |
||||
"${COMPOSE[@]}" build piper-tts-proxy |
||||
"${COMPOSE[@]}" up -d |
||||
echo "[stack:remote] jumble :8089 | og-proxy :8090 | piper HTTP :9876 | LT :8010 | translate :5000" |
||||
@ -1,12 +1,12 @@
@@ -1,12 +1,12 @@
|
||||
#!/usr/bin/env bash |
||||
# Start LanguageTool, LibreTranslate, Wyoming Piper, and the Piper HTTP proxy (Docker). |
||||
# Run the app separately: npm run dev |
||||
# Prefer: npm run dev:all (backends + Vite in one go). |
||||
# This script only starts Docker (no Vite): og-proxy, LanguageTool, LibreTranslate, Wyoming Piper, Piper HTTP proxy. |
||||
# Optional .env.local (Vite): VITE_READ_ALOUD_TTS_URL=/api/piper-tts VITE_LANGUAGE_TOOL_URL=/api/languagetool VITE_TRANSLATE_URL=/api/translate |
||||
set -euo pipefail |
||||
cd "$(dirname "$0")/.." |
||||
mkdir -p .local-piper-data |
||||
npm run docker:local-ancillary |
||||
echo |
||||
echo "Ancillary stack is up (LanguageTool :8010, LibreTranslate :5000, Piper proxy :9876)." |
||||
echo "Ancillary stack is up (og-proxy :8090, LanguageTool :8010, LibreTranslate :5000, Piper HTTP :9876)." |
||||
echo "Wyoming Piper listens inside Docker only; the HTTP proxy on 127.0.0.1:9876 forwards to it." |
||||
echo "Next: npm run dev" |
||||
|
||||
Loading…
Reference in new issue