### Starting Docker Compose Services Source: https://github.com/thijmengthn/swaparr/blob/main/README.md Executes the `docker compose up` command with the `-d` flag to start the services defined in the docker-compose.yml file in detached mode, allowing the containers to run in the background. ```Shell docker compose up -d ``` -------------------------------- ### Restarting Docker Compose Services After Update Source: https://github.com/thijmengthn/swaparr/blob/main/README.md Starts the Docker Compose services in detached mode using the newly pulled images, completing the update process. ```Shell docker compose up -d ``` -------------------------------- ### Extended Radarr, Sonarr, and Lidarr Docker Compose Configuration - YAML Source: https://github.com/thijmengthn/swaparr/blob/main/README.md This snippet provides an extended Docker Compose configuration for Swaparr, adding support for Lidarr alongside Radarr and Sonarr. It includes a third service, 'lidarr', configured similarly to the others with environment variables for API connection, platform type set to 'lidarr', and other operational parameters. This configuration allows Swaparr to manage downloads for music via Lidarr in addition to movies (Radarr) and TV shows (Sonarr). ```YAML version: '3' services: radarr: image: ghcr.io/thijmengthn/swaparr:latest container_name: swaparr-radarr restart: unless-stopped environment: - BASEURL=http://127.0.0.1:7878 # IP or FQDN (Required) - APIKEY=7f3a8..cbc07 # Radarr API Key (Required) - PLATFORM=radarr # "radarr", "sonarr".. (Optional) default: radarr - MAX_STRIKES=3 # Positive number (Optional) default: 3 - SCAN_INTERVAL=10m # 1d, 6h, 30m, etc.. (Optional) default: 10m - MAX_DOWNLOAD_TIME=2h # 1d, 6h, 30m, etc.. (Optional) default: 2h - IGNORE_ABOVE_SIZE=25GB # 1TB, 1GB, 1MB, etc.. (Optional) default: 25GB - REMOVE_FROM_CLIENT=true # Boolean (Optional) default: true - DRY_RUN=false # Boolean (Optional) default: false # -- (Optional) sonarr: image: ghcr.io/thijmengthn/swaparr:latest container_name: swaparr-sonarr restart: unless-stopped environment: - BASEURL=http://127.0.0.1:8989 # IP or FQDN (Required) - APIKEY=7f3a8..cbc07 # Sonarr API Key (Required) - PLATFORM=sonarr # "radarr", "sonarr".. (Optional) default: radarr - MAX_STRIKES=3 # Positive number (Optional) default: 3 - SCAN_INTERVAL=10m # 1d, 6h, 30m, etc.. (Optional) default: 10m - MAX_DOWNLOAD_TIME=2h # 1d, 6h, 30m, etc.. (Optional) default: 2h - IGNORE_ABOVE_SIZE=25GB # 1TB, 1GB, 1MB, etc.. (Optional) default: 25GB - REMOVE_FROM_CLIENT=true # Boolean (Optional) default: true - DRY_RUN=false # Boolean (Optional) default: false # -- (Optional) lidarr: image: ghcr.io/thijmengthn/swaparr:latest container_name: swaparr-lidarr restart: unless-stopped environment: - BASEURL=http://127.0.0.1:8989 # IP or FQDN (Required) - APIKEY=7f3a8..cbc07 # Lidarr API Key (Required) - PLATFORM=lidarr # "radarr", "sonarr".. (Optional) default: radarr - MAX_STRIKES=3 # Positive number (Optional) default: 3 - SCAN_INTERVAL=10m # 1d, 6h, 30m, etc.. (Optional) default: 10m - MAX_DOWNLOAD_TIME=2h # 1d, 6h, 30m, etc.. (Optional) default: 2h - IGNORE_ABOVE_SIZE=25GB # 1TB, 1GB, 1MB, etc.. (Optional) default: 25GB - REMOVE_FROM_CLIENT=true # Boolean (Optional) default: true ``` -------------------------------- ### Basic Radarr and Sonarr Docker Compose Configuration - YAML Source: https://github.com/thijmengthn/swaparr/blob/main/README.md This snippet provides a basic Docker Compose configuration for running Swaparr services integrated with Radarr and Sonarr. It defines two services, 'radarr' and 'sonarr', using the latest Swaparr image and configuring them via environment variables for API connection, platform type, and various operational parameters like scan intervals, download time limits, size ignores, and removal behavior. ```YAML version: '3' services: radarr: image: ghcr.io/thijmengthn/swaparr:latest container_name: swaparr-radarr restart: unless-stopped environment: - BASEURL=http://127.0.0.1:7878 # IP or FQDN (Required) - APIKEY=7f3a8..cbc07 # Radarr API Key (Required) - PLATFORM=radarr # "radarr", "sonarr".. (Optional) default: radarr - MAX_STRIKES=3 # Positive number (Optional) default: 3 - SCAN_INTERVAL=10m # 1d, 6h, 30m, etc.. (Optional) default: 10m - MAX_DOWNLOAD_TIME=2h # 1d, 6h, 30m, etc.. (Optional) default: 2h - IGNORE_ABOVE_SIZE=25GB # 1TB, 1GB, 1MB, etc.. (Optional) default: 25GB - REMOVE_FROM_CLIENT=true # Boolean (Optional) default: true - DRY_RUN=false # Boolean (Optional) default: false # -- (Optional) sonarr: image: ghcr.io/thijmengthn/swaparr:latest container_name: swaparr-sonarr restart: unless-stopped environment: - BASEURL=http://127.0.0.1:8989 # IP or FQDN (Required) - APIKEY=7f3a8..cbc07 # Sonarr API Key (Required) - PLATFORM=sonarr # "radarr", "sonarr".. (Optional) default: radarr - MAX_STRIKES=3 # Positive number (Optional) default: 3 - SCAN_INTERVAL=10m # 1d, 6h, 30m, etc.. (Optional) default: 10m - MAX_DOWNLOAD_TIME=2h # 1d, 6h, 30m, etc.. (Optional) default: 2h - IGNORE_ABOVE_SIZE=25GB # 1TB, 1GB, 1MB, etc.. (Optional) default: 25GB - REMOVE_FROM_CLIENT=true # Boolean (Optional) default: true - DRY_RUN=false # Boolean (Optional) default: false ``` -------------------------------- ### Configuring Swaparr Services in Docker Compose Source: https://github.com/thijmengthn/swaparr/blob/main/README.md Defines the Docker Compose service configurations for Swaparr instances targeting Readarr and Whisparr. It specifies the image, container name, restart policy, and environment variables for connecting to the respective *arr applications and configuring Swaparr's behavior. ```YAML readarr: image: ghcr.io/thijmengthn/swaparr:latest container_name: swaparr-readarr restart: unless-stopped environment: - BASEURL=http://127.0.0.1:8989 # IP or FQDN (Required) - APIKEY=7f3a8..cbc07 # Readarr API Key (Required) - PLATFORM=readarr # "radarr", "sonarr".. (Optional) default: radarr - MAX_STRIKES=3 # Positive number (Optional) default: 3 - SCAN_INTERVAL=10m # 1d, 6h, 30m, etc.. (Optional) default: 10m - MAX_DOWNLOAD_TIME=2h # 1d, 6h, 30m, etc.. (Optional) default: 2h - IGNORE_ABOVE_SIZE=25GB # 1TB, 1GB, 1MB, etc.. (Optional) default: 25GB - REMOVE_FROM_CLIENT=true # Boolean (Optional) default: true - DRY_RUN=false # Boolean (Optional) default: false # -- (Optional) whisparr: image: ghcr.io/thijmengthn/swaparr:latest container_name: swaparr-whisparr restart: unless-stopped environment: - BASEURL=http://127.0.0.1:8989 # IP or FQDN (Required) - APIKEY=7f3a8..cbc07 # Whisparr API Key (Required) - PLATFORM=whisparr # "radarr", "sonarr".. (Optional) default: radarr - MAX_STRIKES=3 # Positive number (Optional) default: 3 - SCAN_INTERVAL=10m # 1d, 6h, 30m, etc.. (Optional) default: 10m - MAX_DOWNLOAD_TIME=2h # 1d, 6h, 30m, etc.. (Optional) default: 2h - IGNORE_ABOVE_SIZE=25GB # 1TB, 1GB, 1MB, etc.. (Optional) default: 25GB - REMOVE_FROM_CLIENT=true # Boolean (Optional) default: true - DRY_RUN=false # Boolean (Optional) default: false ``` -------------------------------- ### Viewing Docker Compose Container Logs Source: https://github.com/thijmengthn/swaparr/blob/main/README.md Displays the logs for a specific container managed by Docker Compose. The `` parameter specifies which container's logs to view. Omitting the parameter shows logs for all services. ```Shell docker compose logs ``` -------------------------------- ### Pulling Latest Docker Compose Images Source: https://github.com/thijmengthn/swaparr/blob/main/README.md Downloads the latest versions of the images referenced in the docker-compose.yml file. This is a necessary step before updating running containers to use newer images. ```Shell docker compose pull ``` -------------------------------- ### Stopping Docker Compose Services Source: https://github.com/thijmengthn/swaparr/blob/main/README.md Stops and removes containers, networks, and volumes created by `docker compose up`. This command is used to shut down the application defined in the docker-compose.yml file. ```Shell docker compose down ``` -------------------------------- ### Stopping Docker Compose Services for Update Source: https://github.com/thijmengthn/swaparr/blob/main/README.md Stops and removes the currently running containers managed by Docker Compose as part of the update process, preparing to restart with the newly pulled images. ```Shell docker compose down ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.