Statefile Manual

Name

Lidarr - Deploy lidarr server using LinuxServer.io image.

Tags

cargo, music-manager, downloader

Synopsis

nanocl state apply -s nr.next-hat.com/v0.17/lidarr -- [--help] ARGUMENTS

nanocl state rm -s nr.next-hat.com/v0.17/lidarr -- [--help] ARGUMENTS

Description

Lidarr is a music collection manager for Usenet and Torrent users. This cargo uses the LinuxServer.io image. It will allow you to automate downloads and manage your music library through a web interface. Documentation: https://docs.linuxserver.io/images/docker-lidarr Source: https://github.com/linuxserver/docker-lidarr

Arguments

--namespace String

Nanocl namespace to deploy the cargo Default: global

--name String

Name of the cargo Default: lidarr

--puid String

Change this to your user ID Default: 1000

--pgid String

Change this to your group ID Default: 1000

--timezone String

Change this to your timezone Default: Etc/UTC

--base-dir-path String

Base path for container configurations Default: /opt/nanocl/containers

--media-dir-path String

Base path for media files Default: /opt/media

--downloads-dir-path String

Path to the downloads directory used by your downloader (e.g. Deluge) Default: /opt/nanocl/containers/deluge/downloads

--proxy-network String

The network the proxy will bind to in order to be accessible using the domain Default: All

--domain String

Domain to use for the proxy rules

--enable_internal_gateway Boolean

Add $$INTERNAL_GATEWAY to container DNS when enabled

--enable_internal_dns Boolean

Create an internal DNS rule for this cargo when enabled

Content

ApiVersion: v0.17
Args:
  - Name: namespace
    Kind: String
    Default: global
    Description: Nanocl namespace to deploy the cargo
  - Name: name
    Kind: String
    Default: lidarr
    Description: Name of the cargo
  - Name: puid
    Kind: String
    Default: '1000'
    Description: Change this to your user ID
  - Name: pgid
    Kind: String
    Default: '1000'
    Description: Change this to your group ID
  - Name: timezone
    Kind: String
    Default: Etc/UTC
    Description: Change this to your timezone
  - Name: base-dir-path
    Kind: String
    Default: /opt/nanocl/containers
    Description: Base path for container configurations
  - Name: media-dir-path
    Kind: String
    Default: /opt/media
    Description: Base path for media files
  - Name: downloads-dir-path
    Kind: String
    Default: /opt/nanocl/containers/deluge/downloads
    Description: Path to the downloads directory used by your downloader (e.g. Deluge)
  - Name: proxy-network
    Kind: String
    Default: All
    Description: >-
      The network the proxy will bind to in order to be accessible using the
      domain
  - Name: domain
    Kind: String
    Description: Domain to use for the proxy rules
  - Name: enable_internal_gateway
    Kind: Boolean
    Description: Add $$INTERNAL_GATEWAY to container DNS when enabled
  - Name: enable_internal_dns
    Kind: Boolean
    Description: Create an internal DNS rule for this cargo when enabled
Namespace: ${{ Args.namespace }}
Cargoes:
  - Name: ${{ Args.name }}
    Container:
      Image: lscr.io/linuxserver/lidarr:latest
      Env:
        - PUID=${{ Args.puid }}
        - PGID=${{ Args.pgid }}
        - TZ=${{ Args.timezone }}
      Dns:
        - $${INTERNAL_GATEWAY}
      HostConfig:
        Binds:
          - ${{ Args.base-dir-path }}/${{ Args.name }}/config:/config
          - ${{ Args.media-dir-path }}/music:/music
          - ${{ Args.downloads-dir-path }}:/downloads
Resources:
  - Name: http.${{ Args.domain }}
    Kind: ncproxy.io/rule
    Data:
      Rules:
        - Domain: ${{ Args.domain }}
          Network: ${{ Args.proxy-network }}
          Locations:
            - Path: /
              Target:
                Key: ${{ Args.name }}.${{ Args.namespace }}.c
                Port: 8686
  - Name: dns.${{ Args.domain }}
    Kind: ncdns.io/rule
    Data:
      Network: Internal
      Entries:
        - Name: ${{ Args.domain }}
          IpAddress: Internal