Files
bdi_podman_serverconf/containers/talkbot/talkbot.container
T

62 行
1.8 KiB
INI

[Unit]
Description=Nextcloud Talk voice-translate bot
After=network-online.target
Wants=network-online.target
[Container]
Image=localhost/talkbot:latest
ContainerName=talkbot
Network=internal.network
PublishPort=8100:8100
PodmanArgs=--group-add=keep-groups
SecurityLabelType=container_runtime_t
Volume=/srv/containers/talkbot/voices:/app/voice-samples:Z,ro
Environment=VOICE_SAMPLES_DIR=/app/voice-samples
# Persistent job queue (SQLite): survives container restarts, so messages
# that were queued but not yet processed are picked up again on startup.
Volume=/srv/containers/talkbot/data:/app/data:Z
#Environment=QUEUE_DB_PATH=/app/data/queue.db
# --- Nextcloud connection ---
Environment=NC_URL=https://your-nextcloud.example.tld
# Shared secret used when registering the bot via:
# occ talk:bot:install "TranslateBot" <secret> https://talkbot.example/webhook
Environment=NC_BOT_SECRET=changeme
# Nextcloud user + app password (Settings > Security > App passwords) used
# only to read user languages and download/upload chat attachments.
Environment=NC_USER=changeme
Environment=NC_PASSWORD=changeme
# Whisper
Environment=WHISPER_URL=http://whisper:8080
Environment=WHISPER_TIMEOUT=1800
# LLAMAcpp
Environment=LLAMACPP_URL=http://llamacpp:8090
#Environment=LLAMACPP_MODEL=
#Environment=LLAMACPP_API_KEY=
Environment=LLAMACPP_MAX_TOKENS=8192
Environment=LLAMACPP_ENABLE_THINKING=false
Environment=LLAMACPP_TIMEOUT=1800
# TTS (qwen-tts, omnivoice, chatterbox, ... any backend exposing /speech + /speech/clone)
Environment=TTS_URL=http://qwen-tts:8000
Environment=TTS_TIMEOUT=5400
Environment=TTS_SPEAKER=Ryan
# --- Behaviour ---
#Environment=LOG_WEBHOOK_PAYLOAD=false
Environment=DEFAULT_TARGET_LANGUAGE=it
[Service]
Restart=on-failure
RestartSec=5
[Install]
WantedBy=default.target