-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (38 loc) · 1.43 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
services:
guindex:
build: .
ports:
- "${PORT:-7000}:7000"
env_file:
- .env
environment:
- PORT=7000
- LOG_LEVEL=info
# Self-host tuning (opcional):
# - TORRENT_INDEXER_ENABLE_FALLBACK=true
# - TORRENT_INDEXER_SEARCH_CACHE_TTL_MS=120000
# - TORRENT_INDEXER_INDEXERS_CACHE_TTL_MS=600000
# - TORRENT_INDEXER_FALLBACK_CONCURRENCY=2
# - TORRENT_INDEXER_FALLBACK_TIMEOUT_MS=3500
# - TORRENT_INDEXER_MAX_QUERY_TIME_MS=12000
# - TORRENT_INDEXER_TARGET_STREAMS=10
# - TORRENT_INDEXER_MAX_DYNAMIC_QUERIES=6
# - TORRENT_INDEXER_HYBRID_MIN_RESULTS=8
# - TORRENT_INDEXER_HYBRID_TARGET_RESULTS=20
# - TORRENT_INDEXER_MAX_STREAMS_PER_SOURCE=14
# - TORRENT_INDEXER_DISABLED_INDEXERS=nome1,nome2
# - TORRENT_INDEXER_FAILURE_THRESHOLD=2
# - TORRENT_INDEXER_FAILURE_COOLDOWN_MS=900000
# - TORRENT_INDEXER_GLOBAL_QUEUE_CONCURRENCY=1
# - TORRENT_INDEXER_GLOBAL_QUEUE_DELAY_MS=1500
# OBRIGATÓRIO: defina o domínio público da sua instância
# - BASE_URL=https://seu-dominio.com
volumes:
- ./public:/app/public:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:7000/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s