51 righe
1.5 KiB
INI
51 righe
1.5 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
|
|
|
|
# --- Backend services (adjust host:port to match your setup/network) ---
|
|
Environment=WHISPER_URL=http://whisper:8080
|
|
Environment=LLAMACPP_URL=http://llamacpp:8090
|
|
#Environment=LLAMACPP_MODEL=
|
|
Environment=LLAMACPP_ENABLE_THINKING=false
|
|
Environment=QWEN_TTS_URL=http://qwen-tts:8000
|
|
|
|
# --- Behaviour ---
|
|
Environment=DEFAULT_TARGET_LANGUAGE=it
|
|
Environment=QWEN_TTS_SPEAKER=Ryan
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=default.target
|