feat: build from captions.coop/captions-deploy, translation models, relay auto-fill

- images/build.sh builds all three images from one pinned captions-deploy
  commit (submodules pin the captions.coop forks; web/Dockerfile is the UI).
- app: UI image configured by env (landing page, site-config.js), translation
  models downloaded into a volume on start (TRANSLATION_MODELS).
- stt: RELAY_AUTOFILL=source|all|off feeds the capture page's /relay-config.
- Drops the recipe's own nginx.conf and web Dockerfile.
This commit is contained in:
2026-10-13 14:49:42 -07:00
parent 4eec2598a8
commit 4fcdb2e225
8 changed files with 89 additions and 79 deletions
+17 -10
View File
@@ -3,12 +3,16 @@ version: "3.8"
services:
app:
image: git.autonomic.zone/recipe-maintainers/caption-ninja-web:2026.09.07-dfcee8f
image: git.autonomic.zone/recipe-maintainers/caption-ninja-web:2026.10.13-12fe0fa
networks:
- proxy
configs:
- source: nginx_conf
target: /etc/nginx/conf.d/default.conf
environment:
- RELAY_URL=wss://${DOMAIN}/relay
- CAPTURE_URL=https://${STT_DOMAIN}/
- RELAY_UPSTREAM=${STACK_NAME}_relay:8787
- TRANSLATION_MODELS=${TRANSLATION_MODELS:-all}
volumes:
- translation_models:/usr/share/nginx/models
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/"]
interval: 30s
@@ -25,10 +29,10 @@ services:
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "coop-cloud.${STACK_NAME}.version=0.1.0+v2026.09.07"
- "coop-cloud.${STACK_NAME}.version=0.2.0+v2026.10.13"
relay:
image: git.autonomic.zone/recipe-maintainers/caption-ninja-relay:0.2.0-dfcee8f
image: git.autonomic.zone/recipe-maintainers/caption-ninja-relay:2026.10.13-12fe0fa
networks:
- proxy
environment:
@@ -67,7 +71,7 @@ services:
- "traefik.http.services.${STACK_NAME}_relay.loadbalancer.server.port=8787"
stt:
image: git.autonomic.zone/recipe-maintainers/caption-ninja-stt:1.1.0-7d759fe
image: git.autonomic.zone/recipe-maintainers/caption-ninja-stt:2026.10.13-12fe0fa
networks:
- proxy
environment:
@@ -83,8 +87,13 @@ services:
- CAPTION_DEVICE=cpu
- CAPTION_OFFLINE=${CAPTION_OFFLINE:-0}
- CAPTION_LOG_REQUESTS=${CAPTION_LOG_REQUESTS:-0}
- RELAY_AUTOFILL=${RELAY_AUTOFILL:-source}
secrets:
- stt_api_key
- src_read
- src_write
- out_read
- out_write
configs:
- source: stt_entrypoint
target: /stt-entrypoint.sh
@@ -135,9 +144,6 @@ secrets:
external: true
configs:
nginx_conf:
name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION}
file: nginx.conf
relay_entrypoint:
name: ${STACK_NAME}_relay_entrypoint_${RELAY_ENTRYPOINT_VERSION}
file: relay-entrypoint.sh
@@ -151,3 +157,4 @@ networks:
volumes:
models:
translation_models: