Files
MediaFusion/deployment/docker-compose/docker-compose.yml
T
Mohamed Zumair 52d8956034 Add ScrapeOps monitoring, Add zilean filtered endpoint, Fix Prowlarr scraping with download link & Fix PikPak login error etc (#319)
* Refactor ZileanScraper to use parallel requests for searching and filtering streams with new endpoints

* Fix DLHD scraping & enable DLHD without MediaFlow

* Switch to httpx for async HTTP requests

* Implement caching for PikPak token to reduce login error

* Refactor torrent cleanup logic

* Add inactivity monitor extension to close idle spiders

Introduced `InactivityMonitor` to automatically close spiders that remain inactive for a specified time. This extension checks activity at regular intervals and uses configurable settings for check intervals and inactivity timeouts. If no items are scraped within the timeout period, the spider is closed to free resources.

* Handle TypeError in dynamic sorting of streams

* Refactor torrent info scraper to support pre-processing.

Introduced a pre-processing function mapping to handle specific indexer requirements before parsing the HTML. Added a custom pre-processing function for "TheRARBG" to handle URL adjustments, improving modularity and readability in the `get_torrent_info` function.

* Refine error logging and fix hash key in spider

* Fix Prowlarr not stop on max process limit

* #315: Integrate ScrapeOps logging into all scrapers & spiders

Added ScrapeOps logging to Zilean, Torrentio, Prowlarr, and Prowlarr Feed scrapers to enhance request tracking and error handling. Configured ScrapeOps API key in settings and updated Pipfile/Pipfile.lock with scrapeops-python-requests and scrapeops-scrapy dependencies.

* Refactor scraper cache status handler

* verify torrent before parsing on prowlarr & prioritize magnet on badass_torrents

* Add support for provide locally hosted mediaflow proxy public address and reduce the time leg on private ip address checking

* handle RD exception cases

* do not setup scrapeops when api key is none

* Enhanced dynamic sorting of torrent streams

Revised the dynamic_sort_key function to handle different key types more efficiently with match-case. Simplified error handling and improved logging to capture sorting data in the case of exceptions.

* add missing last update date for metadata

* update domain for nowmesports
2024-10-14 05:58:23 +05:30

77 lines
1.5 KiB
YAML

version: '3.8'
services:
mediafusion:
image: mhdzumair/mediafusion:v4.0.2
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- mongodb
- redis
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 1m
timeout: 10s
retries: 5
start_period: 10s
nginx:
image: nginx:alpine
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./mediafusion.local.pem:/etc/ssl/certs/mediafusion.local.pem
- ./mediafusion.local-key.pem:/etc/ssl/private/mediafusion.local-key.pem
ports:
- "443:443"
depends_on:
- mediafusion
mongodb:
image: mongo
volumes:
- mongo-data:/data/db
ports:
- "27017:27017"
redis:
image: redis:latest
ports:
- "6379:6379"
dramatiq-worker:
image: mhdzumair/mediafusion:v4.0.2
command: ["pipenv", "run", "dramatiq", "api.task", "-p", "1", "-t", "1", "--queues", "scrapy"]
env_file:
- .env
depends_on:
- mongodb
prowlarr:
image: ghcr.io/hotio/prowlarr:latest
environment:
PUID: "1000"
PGID: "1000"
UMASK: "002"
ports:
- "9696:9696"
volumes:
- prowlarr-config:/config
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
ports:
- "8191:8191"
browserless:
image: ghcr.io/browserless/chromium
ports:
- "3000:3000"
environment:
- TIMEOUT='-1'
volumes:
mongo-data:
prowlarr-config: