I would like to create a simple NFS server project (both for the experience but also with a need in mind), but am struggling how to start. The server would serve RW storage across my home network for any device to connect to. Storage would be in the from of a SATA drive, being based on the BananaPi, but equally a USB stick could get added to be shared.
I have the following basic parts set out that I want project to do:
- install base image
- install nfs tools
- define storage device(s) as environment variable
- mount device
- export mounted directory to 0.0.0.0/0
I’ve played around with Dockerfile and docker-compose files, it’s just a matter of meeting my requirements I’m unsure about. Could any one point in the right direction for getting started.