maggie44 / docker-nfs

Serves the volume specified in the docker-compose file over NFS.
MIT License
4 stars 1 forks source link

Compose file invalid #1

Open ghost opened 1 year ago

ghost commented 1 year ago
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.nfs.environment.SYNC contains true, which is an invalid type, it should be a string, number, or a null
maggie44 commented 1 year ago

Have you tried modifying this: https://github.com/maggie0002/docker-nfs/blob/46e8cea80b2e53d8733df839222d6e992df11f21/docker-compose.yml#L15

If you have and this isn't helping, I would need to know more about where the error is from and when to be able to help.

There is also a newer version of NFS serving that may be helpful: https://hub.balena.io/organizations/maggie0002/blocks/nfs-server

ghost commented 1 year ago

What im trying to do, is to add a volume I'm already using as a download folder and make it accessible to my whole network. Since I'm new to docker and all that stuff I'm confused why there are two lines with volume in the compose file and where i should add my volume bind. So I tried both lines and ended up having the error as mentioned.

Am 27. September 2022 17:30:57 MESZ schrieb maggie0002 @.***>:

Have you tried modifying this: https://github.com/maggie0002/docker-nfs/blob/46e8cea80b2e53d8733df839222d6e992df11f21/docker-compose.yml#L15

If so, I would need to know more about where the error is from to be able to help.

There is also a newer version of NFS serving that may be helpful: https://hub.balena.io/organizations/maggie0002/blocks/nfs-server

-- Reply to this email directly or view it on GitHub: https://github.com/maggie0002/docker-nfs/issues/1#issuecomment-1259678031 You are receiving this because you authored the thread.

Message ID: @.***>

maggie44 commented 1 year ago

This block is probably better then: https://hub.balena.io/organizations/maggie0002/blocks/nfs-server

You could change the volume name from nfs:/nfs to your-existing-volume:/nfs.

services:
  nfs:
    image: bh.cr/maggie0002/nfs-server
    volumes:
+      - "nfs:/nfs"
    restart: always
    network_mode: host
    privileged: true
    labels:
      io.balena.features.kernel-modules: "1"
      io.balena.features.sysfs: "1"
      io.balena.features.procfs: "1"

    # If content from your primary image is required in the volume ensure this container depends
    # on the primary image. This will ensure your primary container creates the volume and inserts
    # your content.

    # depends_on:
    #  - name_of_primary_container

volumes:
  nfs: