NFS v4 server running under s6 overlay on Alpine Linux.
See example directory for sample config file.
nfs4:
image: joebiellik/nfs4
# Required to load kernel NFS module
privileged: true
volumes:
# You must provide an exports config file
- ./exports:/etc/exports
# Shares
- /mnt:/mnt
ports:
- "111:111/tcp"
- "111:111/udp"
- "2049:2049/tcp"
- "2049:2049/udp"
mount -t nfs4 localhost:/ ./nfs