67 lines
3.1 KiB
YAML
67 lines
3.1 KiB
YAML
# ─────────────────────────────────────────────────────────────────────────────
|
|
# TTS Voice Creator - Clone and Design 2 — Portainer Stack
|
|
#
|
|
# The image is published to GitHub Container Registry, so Portainer's
|
|
# "Pull and redeploy" / "Re-pull image" works normally.
|
|
#
|
|
# To publish a new build from the host:
|
|
#
|
|
# cd /home/sparky/Docker/tts-voice-creator-clone-and-design-2
|
|
# docker compose build
|
|
# docker push ghcr.io/martin-b78/tts-voice-creator-clone-and-design-2:latest
|
|
#
|
|
# Then in Portainer: Stacks -> this stack -> Update the stack -> Re-pull image.
|
|
#
|
|
# Pin a specific release by replacing ":latest" below with a version tag
|
|
# (e.g. ":1.22.2"); every build is pushed under both tags.
|
|
#
|
|
# Python code (server.py, core/, routes/) and static files are bind-mounted,
|
|
# so code changes need only a container recreate -- not a rebuild+push.
|
|
# Rebuild and push only when Dockerfile or requirements.txt change.
|
|
# ─────────────────────────────────────────────────────────────────────────────
|
|
|
|
services:
|
|
tts-voice-creator-clone-and-design-2:
|
|
image: ghcr.io/martin-b78/tts-voice-creator-clone-and-design-2:latest
|
|
container_name: tts-voice-creator-clone-and-design-2
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
- "7890:7890"
|
|
|
|
group_add:
|
|
- "988"
|
|
|
|
volumes:
|
|
- /home/sparky/Media/_Sounds/TTS_Voices:/voices:rw
|
|
- /home/sparky/Docker/tts-voice-creator-clone-and-design-2/config:/home/app/.config/tts-voice-creator:rw
|
|
- /home/sparky/Docker/tts-voice-creator-clone-and-design-2/logs:/logs:rw
|
|
- /home/sparky/Docker/tts-dgx-spark-faster-qwen3-tts/config:/tts-config:rw
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
# ── Hot-reload mounts (changes apply on container recreate, not restart) ──
|
|
- /home/sparky/Docker/tts-voice-creator-clone-and-design-2/server.py:/app/server.py:ro
|
|
- /home/sparky/Docker/tts-voice-creator-clone-and-design-2/core:/app/core:ro
|
|
- /home/sparky/Docker/tts-voice-creator-clone-and-design-2/routes:/app/routes:ro
|
|
- /home/sparky/Docker/tts-voice-creator-clone-and-design-2/static:/app/static:ro
|
|
- /home/sparky/Docker/tts-voice-creator-clone-and-design-2/VERSION:/app/VERSION:ro
|
|
- /home/sparky/Docker/tts-voice-creator-clone-and-design-2/CHANGELOG.md:/app/CHANGELOG.md:ro
|
|
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
- VOICES_DIR=/voices
|
|
- OUTPUT_DIR=/voices/active_voices
|
|
- TTS_STREAM_URL=http://host.docker.internal:8023
|
|
- TTS_CONTAINER_NAME=tts-faster-qwen3-tts-voiceclone
|
|
- TTS_CONTAINER_NAMES=tts-faster-qwen3-tts-voiceclone,tts-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
|