Files
GPU-Node/compose.yaml
Z User c9ed8e0245 fix: TTS voice upload updates voice_to_speaker.yaml + language selector + v0.8.3
- compose.yaml: mount gpu/tts/config → /app/config for voice_to_speaker.yaml
- /api/tts/upload-voice: creates/updates voice_to_speaker.yaml with new voice entry
- TTSTab: language selector (default Russian), passed to API
- /api/tts/generate: arrayBuffer instead of streaming for reliability
2026-10-29 23:09:05 +00:00

209 lines
5.7 KiB
YAML

# ---------------------------------------------------------------------------
# Validate HOST_PROJECT_PATH early — if it's empty, the `ssh` container will
# exit with "HOST_PROJECT_PATH is not set" and after a server reboot only
# tailscale will come back (because ssh keeps crash-looping on restart: always).
# ---------------------------------------------------------------------------
# ${HOST_PROJECT_PATH:?ERROR: HOST_PROJECT_PATH must be set in .env — see .env.example}
name: ${TAILSCALE_HOSTNAME:-gpu-node}
services:
tailscale:
image: tailscale/tailscale:latest
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-tailscale
hostname: ${TAILSCALE_HOSTNAME:-gpu-node}
environment:
TS_AUTHKEY: ${TS_AUTHKEY}
TS_STATE_DIR: /var/lib/tailscale
TS_SERVE_CONFIG: /config/serve.json
volumes:
- ${HOST_PROJECT_PATH:-.}/tailscale/state:/var/lib/tailscale
- ${HOST_PROJECT_PATH:-.}/tailscale/config:/config:ro
networks:
- gpu-node
restart: always
labels:
- "node.role=tailscale"
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
ssh:
image: gpu-node-ssh
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-ssh-main
hostname: ssh-main
environment:
HOST_PROJECT_PATH: ${HOST_PROJECT_PATH}
SSH_ROLE: main
SSH_PORT: "22"
NODE_INSTANCE: ${TAILSCALE_HOSTNAME:-gpu-node}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${HOST_PROJECT_PATH:-./}:/project
networks:
- gpu-node
restart: always
labels:
- "node.role=ssh-main"
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
ssh-companion:
profiles:
- wake
image: gpu-node-ssh
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-ssh-companion
hostname: ssh-companion
environment:
HOST_PROJECT_PATH: ${HOST_PROJECT_PATH}
SSH_ROLE: companion
SSH_PORT: "2222"
NODE_INSTANCE: ${TAILSCALE_HOSTNAME:-gpu-node}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${HOST_PROJECT_PATH:-./}:/project
networks:
- gpu-node
restart: always
labels:
- "node.role=ssh-companion"
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
webdav:
profiles:
- wake
image: rclone/rclone:latest
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-webdav
hostname: webdav
command:
- serve
- webdav
- /data
- --addr
- :8080
- --user
- ${WEBDAV_USER:-operator}
- --pass
- ${WEBDAV_PASS}
volumes:
- ${HOST_PROJECT_PATH:-./}:/data
networks:
- gpu-node
restart: always
labels:
- "node.role=webdav"
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
gpu-test:
profiles:
- test
image: gpu-node-gpu-test
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-gpu-test
gpus: all
networks:
- gpu-node
restart: "no"
labels:
- "node.role=gpu-test"
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
model-worker:
profiles:
- wake
image: gpu-node-model-worker
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-model-worker
volumes:
- ${HOST_PROJECT_PATH:-./}/gpu/comfy/models:/models
- ${HOST_PROJECT_PATH:-./}/gpu/model-worker:/state
networks:
- gpu-node
restart: always
labels:
- "node.role=model-worker"
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
llama:
profiles:
- llama
image: ghcr.io/ggml-org/llama.cpp:server-cuda
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-llama
gpus: all
volumes:
- ${HOST_PROJECT_PATH:-./}/gpu/llama_models:/models
command: >
--host 0.0.0.0
--port 8080
--model /models/${LLAMA_MODEL:-model.gguf}
${LLAMA_EXTRA_ARGS:-}
networks:
- gpu-node
restart: "no"
labels:
- "node.role=llama"
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
comfyui:
profiles:
- comfy
image: mmartial/comfyui-nvidia-docker:latest
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-comfyui
init: true
gpus: all
volumes:
- ${COMFY_RUN_HOST:-./comfyui/run}:/comfy/mnt
- ${COMFY_BASE_HOST:-./gpu/comfy}:/basedir
environment:
USE_UV: "true"
WANTED_UID: "1000"
WANTED_GID: "1000"
BASE_DIRECTORY: "/basedir"
SECURITY_LEVEL: "normal"
COMFY_CMDLINE_EXTRA: ${COMFY_EXTRA_ARGS:-}
networks:
- gpu-node
restart: "no"
labels:
- "node.role=comfyui"
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
tts:
profiles:
- tts
image: ghcr.io/matatonic/openedai-speech:latest
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-tts
gpus: all
volumes:
- ${HOST_PROJECT_PATH:-./}/gpu/tts/voices:/app/voices
- ${HOST_PROJECT_PATH:-./}/gpu/tts/cache:/app/cache
- ${HOST_PROJECT_PATH:-./}/gpu/tts/config:/app/config
environment:
PORT: 8000
HALF_PRECISION: "false"
TTS_ALLOWED_PLAYERS: "*"
networks:
- gpu-node
restart: "no"
labels:
- "node.role=tts"
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
dashboard:
image: gpu-node-dashboard
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-dashboard
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${HOST_PROJECT_PATH:-./}:/project
environment:
HOST_PROJECT_PATH: ${HOST_PROJECT_PATH}
PROJECT_DIR: /project
LLAMA_MODELS_DIR: /project/gpu/llama_models
NODE_INSTANCE: ${TAILSCALE_HOSTNAME:-gpu-node}
TAILSCALE_HOSTNAME: ${TAILSCALE_HOSTNAME:-gpu-node}
networks:
- gpu-node
restart: always
labels:
- "node.role=dashboard"
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
networks:
gpu-node:
name: ${TAILSCALE_HOSTNAME:-gpu-node}