Basically I have a Navidrome container and it’s pointing at my music in a network mounted folder, what’s the best way to ensure that it’s always there, even after a reboot of my Pi?

  • 𝓢𝓮𝓮𝓙𝓪𝔂𝓔𝓶𝓶
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago

    I’m rather confused by the config you posted. The NFS config should all be down in the volumes: section the only thing you reference in the service section is the name of the volume you define and the path to mount in the container. Something like this (tho I’m guessing as to what should be what with your setup).

    services:
      navidrome:
        container_name: navidrome
        image: deluan/navidrome:latest
        ports:
          - "4533:4533"
        environment:
          ND_SCANSCHEDULE: 1h
          ND_LOGLEVEL: info
        volumes:
          - /opt/navidrome/data:/data
          - music:/music
    volumes:
      music:
        driver_opts:
          type: nfs
          o: "addr=XXX.XXX.XXX.XXX,nolock,soft,ro"
          device: ":/nfs/Shared Music"
    
    • sabreW4K3@lemmy.tfOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Thank you so much.

      One more question, do I have to point it directly at the directory I want or can I point it at one above? Reason being, I have a film directory which I will point Jellyfin to too.