You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.6 KiB
65 lines
1.6 KiB
version: '3.8'
|
|
|
|
services:
|
|
reddit-video-bot:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: reddit-video-bot
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5000:5000"
|
|
volumes:
|
|
# Config is read-write so UI can save settings
|
|
- ./config.toml:/app/config.toml
|
|
- ./results:/app/results
|
|
- ./assets:/app/assets
|
|
environment:
|
|
- REDDIT_BOT_GUI=true
|
|
# Reddit Scraper Settings (no API keys required!)
|
|
- REDDIT_SUBREDDIT=${REDDIT_SUBREDDIT:-AskReddit}
|
|
- REDDIT_REQUEST_DELAY=${REDDIT_REQUEST_DELAY:-2.0}
|
|
- REDDIT_RANDOM=${REDDIT_RANDOM:-true}
|
|
# TTS Settings
|
|
- TTS_VOICE_CHOICE=${TTS_VOICE_CHOICE:-qwentts}
|
|
- QWEN_API_URL=${QWEN_API_URL:-http://localhost:8080}
|
|
- QWEN_EMAIL=${QWEN_EMAIL:-}
|
|
- QWEN_PASSWORD=${QWEN_PASSWORD:-}
|
|
- QWEN_SPEAKER=${QWEN_SPEAKER:-Vivian}
|
|
- QWEN_LANGUAGE=${QWEN_LANGUAGE:-English}
|
|
networks:
|
|
- reddit-bot-network
|
|
# Run the web UI by default
|
|
command: python progress_gui.py
|
|
|
|
# Optional: Qwen TTS Server (if running locally)
|
|
# Uncomment or use: docker-compose --profile with-tts up -d
|
|
qwen-tts:
|
|
image: qwen-tts-server:latest
|
|
container_name: qwen-tts
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- TTS_MODEL=qwen3-tts
|
|
networks:
|
|
- reddit-bot-network
|
|
profiles:
|
|
- with-tts
|
|
# Uncomment if using GPU
|
|
# deploy:
|
|
# resources:
|
|
# reservations:
|
|
# devices:
|
|
# - driver: nvidia
|
|
# count: 1
|
|
# capabilities: [gpu]
|
|
|
|
networks:
|
|
reddit-bot-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
results:
|
|
assets:
|