### Start Subsyncarr with Docker Compose Source: https://github.com/johnpc/subsyncarr/blob/main/README.md Command to start the Subsyncarr service in detached mode after configuring your docker-compose.yaml file. ```bash docker compose up -d ``` -------------------------------- ### Docker Run Command for Subsyncarr Source: https://github.com/johnpc/subsyncarr/blob/main/README.md Alternative method to start Subsyncarr using a single docker run command. This command includes volume mounts, port mapping, and environment variables for configuration. ```bash docker run -d \ --name subsyncarr \ -p 3000:3000 \ -v /path/to/movies:/movies \ -v /path/to/tv:/tv \ -v ./data:/app/data \ -e TZ=Etc/UTC \ -e PUID=1000 \ -e PGID=10 \ -e CRON_SCHEDULE="0 0 * * *" \ -e SCAN_PATHS=/movies,/tv \ -e MAX_CONCURRENT_SYNC_TASKS=1 \ mrorbitman/subsyncarr:latest ``` -------------------------------- ### Set Sync Engine Timeout to 60 Minutes Source: https://github.com/johnpc/subsyncarr/blob/main/README.md Configure the maximum runtime for each sync engine using the SYNC_ENGINE_TIMEOUT_MS environment variable. This example sets the timeout to 60 minutes, which is useful for processing large files. ```yaml environment: - SYNC_ENGINE_TIMEOUT_MS=3600000 # 60 minutes for large files ``` -------------------------------- ### Get Host User ID Source: https://github.com/johnpc/subsyncarr/blob/main/README.md Command to retrieve the current user's ID on the host system. This is used to set the PUID environment variable for correct file permissions within the container. ```bash id -u # Get your user ID ``` -------------------------------- ### Get Host Group ID Source: https://github.com/johnpc/subsyncarr/blob/main/README.md Command to retrieve the current user's group ID on the host system. This is used to set the PGID environment variable for correct file permissions within the container. ```bash id -g # Get your group ID ``` -------------------------------- ### Docker Compose Configuration for Subsyncarr Source: https://github.com/johnpc/subsyncarr/blob/main/README.md Use this docker-compose.yaml to set up and run Subsyncarr. Ensure you update volume paths, timezone, PUID/PGID, and scan paths to match your environment. ```yaml name: subsyncarr services: subsyncarr: image: mrorbitman/subsyncarr:latest container_name: subsyncarr ports: - '3000:3000' # Web UI volumes: # Mount your media directories - /path/to/movies:/movies - /path/to/tv:/tv - /path/to/anime:/anime - ./data:/app/data # Persist database across restarts restart: unless-stopped deploy: resources: limits: memory: 768M # Hard limit reservations: memory: 128M # Minimum guaranteed memory environment: - TZ=Etc/UTC # Replace with your own timezone - PUID=1000 - PGID=10 - CRON_SCHEDULE=0 0 * * * # Runs every day at midnight by default - SCAN_PATHS=/movies,/tv # Comma-separated paths to scan - EXCLUDE_PATHS=/movies/temp,/tv/downloads # Optional: exclude directories - MAX_CONCURRENT_SYNC_TASKS=1 # Number of parallel processing tasks - INCLUDE_ENGINES=ffsubsync,autosubsync,alass # Engines to use ``` -------------------------------- ### View Container Logs Source: https://github.com/johnpc/subsyncarr/blob/main/README.md Command to view the logs of the running subsyncarr Docker container in real-time. ```bash docker logs -f subsyncarr ``` -------------------------------- ### Database Volume Configuration Source: https://github.com/johnpc/subsyncarr/blob/main/README.md Configure the volume for storing the SQLite database and logs. Ensure the data volume is mounted to persist data across container restarts. ```yaml volumes: - ./data:/app/data # Database and logs stored here ``` -------------------------------- ### Pull Latest Subsyncarr Docker Image Source: https://github.com/johnpc/subsyncarr/blob/main/README.md Command to download the most recent version of the Subsyncarr Docker image from Docker Hub. ```bash docker pull mrorbitman/subsyncarr:latest ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.