- Created .dockerignore and .gitignore files to exclude unnecessary files from Docker builds. - Added Dockerfile for multi-stage build setup, including dependencies and production environment configuration. - Introduced docker-compose.yml for service orchestration, including FlareSolverr and the main application. - Implemented core functionality for downloading manga chapters, including utilities for handling file paths and chapter metadata. - Added ESLint configuration for code quality and consistency. - Included JSDoc configuration for documentation generation. - Established initial package.json and package-lock.json with necessary dependencies for the project.
27 lines
641 B
YAML
27 lines
641 B
YAML
services:
|
|
flaresolverr:
|
|
image: ghcr.io/flaresolverr/flaresolverr:latest
|
|
environment:
|
|
LOG_LEVEL: info
|
|
ports:
|
|
- "8191:8191"
|
|
restart: unless-stopped
|
|
|
|
cxyz:
|
|
build: .
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
PORT: "3000"
|
|
DATA_DIR: /app/data
|
|
# Wake hourly; sync at most one due title per wake.
|
|
WATCH_CRON: "0 * * * *"
|
|
# Each title is eligible again after this many hours (daily).
|
|
WATCH_TITLE_INTERVAL_HOURS: "24"
|
|
FLARESOLVERR_URL: http://flaresolverr:8191/v1
|
|
volumes:
|
|
- ./data:/app/data
|
|
depends_on:
|
|
- flaresolverr
|
|
restart: unless-stopped
|