-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (83 loc) · 2.8 KB
/
docker-compose.yml
File metadata and controls
89 lines (83 loc) · 2.8 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.9"
services:
# ─── Torrent Scraper ──────────────────────────────────────────────────────
scraper:
build:
context: ./scraper
dockerfile: Dockerfile
image: magnetio-scraper:latest
container_name: magnetio_scraper
restart: unless-stopped
environment:
- PORT=8080
- REDIS_URI=redis://redis:6379
- CACHE_TTL_STREAMS=${CACHE_TTL_STREAMS:-3600}
- LOG_LEVEL=${LOG_LEVEL:-info}
depends_on:
redis:
condition: service_healthy
networks:
- magnetio_net
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
# ─── Stremio Addon ────────────────────────────────────────────────────────
addon:
build:
context: ./addon
dockerfile: Dockerfile
image: magnetio-addon:latest
container_name: magnetio_addon
restart: unless-stopped
ports:
- "${PORT:-7000}:7000"
environment:
- PORT=7000
- REDIS_URI=redis://redis:6379
- SCRAPER_URL=http://scraper:8080
- METRICS_USER=${METRICS_USER:-admin}
- METRICS_PASSWORD=${METRICS_PASSWORD:-magnetio}
- LOG_LEVEL=${LOG_LEVEL:-info}
- ADDON_PUBLIC_URL=${ADDON_PUBLIC_URL:-}
- OPENSUBTITLES_API_KEY=${OPENSUBTITLES_API_KEY:-}
- OPENSUBTITLES_USERNAME=${OPENSUBTITLES_USERNAME:-}
- OPENSUBTITLES_PASSWORD=${OPENSUBTITLES_PASSWORD:-}
- OPENSUBTITLES_USER_AGENT=${OPENSUBTITLES_USER_AGENT:-Magnetio v1.0.0}
- FFSUBSYNC_PATH=${FFSUBSYNC_PATH:-}
- ALASS_PATH=${ALASS_PATH:-}
- SUBTITLE_SYNC_MAX_OFFSET_SECONDS=${SUBTITLE_SYNC_MAX_OFFSET_SECONDS:-300}
- ALASS_SPLIT_PENALTY=${ALASS_SPLIT_PENALTY:-10}
depends_on:
redis:
condition: service_healthy
scraper:
condition: service_healthy
networks:
- magnetio_net
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:7000/health"]
interval: 30s
timeout: 5s
retries: 3
# ─── Redis Cache ──────────────────────────────────────────────────────────
redis:
image: redis:7-alpine
container_name: magnetio_redis
restart: unless-stopped
command: redis-server --save 60 1 --loglevel warning
volumes:
- redis_data:/data
networks:
- magnetio_net
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
redis_data:
networks:
magnetio_net:
driver: bridge