Root cause: VERSION was not volume-mounted, so the server always reported 1.2.0, causing browsers to serve 1-year-immutable cached JS even after code changes. Fixes: - docker-compose.yml: add ./VERSION:/app/VERSION:ro volume mount. After `docker compose up -d`, the server reads the current VERSION file and JS is cache-busted by the correct version string. - loader.js: append session timestamp to _appVersion so every page load generates a unique JS URL. JS is always fresh regardless of whether VERSION is current, at the cost of one network round-trip per file per session (acceptable for a local tool). - s-clone.html: embed EN default text directly in the textarea so the field is never empty even before JS runs. - voice-clone.js: remove the 'skip if already filled' guard in initCloneSampleText so navigating back always resets to the language text; call refreshSttBackends on load with sttReady event fallback. - stt.js: dispatch 'sttReady' event after all STT listeners are wired. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
services:
|
|
tts-voice-creator-clone-and-design-2:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: tts-voice-creator-clone-and-design-2:latest
|
|
container_name: tts-voice-creator-clone-and-design-2
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
- "7890:7890"
|
|
|
|
# Give the app user access to the Docker socket (GID of docker group on host)
|
|
group_add:
|
|
- "${DOCKER_GID:-988}"
|
|
|
|
volumes:
|
|
- ${VOICE_HOST_DIR:-./voices}:/voices:rw
|
|
- ./config:/home/app/.config/tts-voice-creator:rw # settings, presets, routes
|
|
- ./logs:/logs:rw # application logs
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- ./static:/app/static:ro
|
|
- ./server.py:/app/server.py:ro
|
|
- ./core:/app/core:ro
|
|
- ./routes:/app/routes:ro
|
|
- ./VERSION:/app/VERSION:ro
|
|
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
- VOICES_DIR=/voices
|
|
- OUTPUT_DIR=/voices/active_voices
|
|
# Containers that load WAV files and need a restart after voice changes
|
|
- TTS_CONTAINER_NAMES=faster-qwen3-tts-voiceclone,faster-qwen3-tts-streaming
|
|
- VOICE_DESIGN_MODEL=Qwen3-TTS-12Hz-1.7B-VoiceDesign
|
|
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
networks:
|
|
- dgx_net
|
|
|
|
networks:
|
|
dgx_net:
|
|
external: true
|