-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (51 loc) · 1.83 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (51 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.8'
# qbt-rules - Minimal Setup
# SQLite queue (default), single container deployment
# Suitable for home users and small deployments
services:
qbt-rules:
image: ghcr.io/andronics/qbt-rules:latest
container_name: qbt-rules
restart: unless-stopped
ports:
- "5000:5000" # API server
volumes:
# Configuration and database
- ./config:/config
# Optional: Docker secrets (recommended)
# - ./secrets/qbt_password:/run/secrets/qbt_password:ro
# - ./secrets/api_key:/run/secrets/api_key:ro
environment:
# Server configuration
QBT_RULES_SERVER_HOST: "0.0.0.0"
QBT_RULES_SERVER_PORT: "5000"
QBT_RULES_SERVER_API_KEY: "your-secure-api-key-here" # Change this!
QBT_RULES_SERVER_WORKERS: "1"
# Queue configuration (SQLite default)
QBT_RULES_QUEUE_BACKEND: "sqlite"
QBT_RULES_QUEUE_SQLITE_PATH: "/config/qbt-rules.db"
QBT_RULES_QUEUE_CLEANUP_AFTER: "7d"
# qBittorrent connection
QBT_RULES_QBITTORRENT_HOST: "http://qbittorrent:8080" # Change to your qBittorrent host
QBT_RULES_QBITTORRENT_USERNAME: "admin"
QBT_RULES_QBITTORRENT_PASSWORD: "adminpass"
# Optional: Use Docker secrets instead
# QBT_RULES_QBITTORRENT_PASSWORD_FILE: "/run/secrets/qbt_password"
# QBT_RULES_SERVER_API_KEY_FILE: "/run/secrets/api_key"
# Logging
LOG_LEVEL: "INFO"
# TRACE_MODE: "true" # Uncomment for detailed debugging
# Health check
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:5000/api/health').raise_for_status()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
# Optional: Network configuration
# networks:
# - qbt-network
# Optional: Define network
# networks:
# qbt-network:
# driver: bridge