name: navidrome
services:
  navidrome:
    container_name: navidrome
    deploy:
      resources:
        limits:
          cpus: '1'
          memory: 1024M
    image: deluan/navidrome:0.50.0
    labels:
      icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Navidrome/icon.png
    restart: always
    ports:
      - target: 4533
        published: "4533"
        protocol: tcp
    volumes:
      - type: bind
        source: /DATA/AppData/$AppID/data
        target: /data
      - type: bind
        source: /DATA/Media/Music
        target: /music
    environment:
      ND_SCANSCHEDULE: 1h
      ND_LOGLEVEL: info
      ND_SESSIONTIMEOUT: 24h
      ND_BASEURL: ""
      TZ: $TZ
    network_mode: host
    privileged: false
    x-casaos:
      envs:
        - container: ND_SCANSCHEDULE
          description:
            en_us: Configure periodic scans using cron syntax.
        - container: ND_LOGLEVEL
          description:
            en_us: Log level.
        - container: ND_SESSIONTIMEOUT
          description:
            en_us: How long Navidrome will wait before closing web ui idle sessions
        - container: ND_BASEURL
          description:
            en_us: 'Base URL (only the path part) to configure Navidrome behind a proxy (ex: /music)'
        - container: TZ
          description:
            en_us: TimeZone
      volumes:
        - container: /data
          description:
            en_us: AppData Data File
        - container: /music
          description:
            en_us: Music folder
      ports:
        - container: '4533'
          description:
            en_us: WebUI Port for Navidrome
x-casaos:
  architectures:
    - amd64
    - arm64
    - arm
  author: "The Navidrome Authors"
  category: "Media"
  description:
    en_us: Navidrome is an open source web-based music collection server and streamer. It gives you freedom to listen to your music collection from any browser or mobile device. It's like your personal Spotify!
  icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Navidrome/icon.png
  index: /
  main: navidrome
  port_map: "4533"
  scheme: http
  screenshot_link:
    - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Navidrome/screenshot-1.png
    - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Navidrome/screenshot-2.png
  store_app_id: navidrome
  title:
    custom: Navidrome