I have a nas (synology) and a mini pc(will install linux + docker) then I would like to use my nas drive as the storage (like storing photos) then use the docker on my linux machine and mount nas drive volume. But this should work when I manage on my linux machine.

It will be easier to manage on my nas then use my linux machine as a node/worker for running containers. So if you have any suggestions for this concept please let me know

  • peteyhasnoshoes@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    You may be able to use swarm mode or k8s with your NAS as a master and other box as as a worker, but really theres very little point. As others have said, exporting volumes from your NAS via NFS and managing the worker using portainer or ssh to manage the worker directly might be better.

    This kind of situation, where you have heterogeneous management systems with cross-cutting concerns is a great fit for Ansible - your playbook could provision the NFS volumes form the NAS and push the compose files to the worker at the same time, saving you from having to log in on both

    • cyl3el2cleal2@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I will try swarm mode. K8S is too heavy. Portainer is a great tool but I need to ssh for mounting drive every time I want to use NFS.

      • heehoX@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        You don’t have to SSH everytime. You can just add the NFS share to your fstab and it will automatically mount when you boot your machine.