version: '2' services: server: image: fuzzle/docker-nfs-server volumes: - '/media/4TB/Seriale:/exports/Seriale' environment: NFS_EXPORT_DIR_1: '/exports/' NFS_EXPORT_DOMAIN_1: '192.168.2.0/24' NFS_EXPORT_OPTIONS_1: 'rw,fsid=root,no_subtree_check,nohide,insecure' NFS_EXPORT_DIR_2: '/exports/Seriale' NFS_EXPORT_DOMAIN_2: '192.168.2.0/24' NFS_EXPORT_OPTIONS_2: 'rw,sync,no_root_squash,no_all_squash,no_subtree_check' ports: - 111:111 - 111:111/udp - 2049:2049 - 2049:2049/udp - 32765:32765 - 32765:32765/udp - 32766:32766 - 32766:32766/udp - 32767:32767 - 32767:32767/udp restart: unless-stopped privileged: true