https://4sysops.com/archives/using-docker-with-nas-and-nfs/
Example
version: "3.7"
services:
ring-mqtt:
container_name: ring-mqtt
restart: unless-stopped
image: tsightler/ring-mqtt
ports:
- 8554:8554 # Enable RTSP port for external media player access
volumes:
- type: volume
source: surveillance_ring
target: /ring
volume:
nocopy: true
logging: #limit logs to 10m and 3 files
options:
max-size: 10m
max-file: "3"
volumes:
surveillance_ring:
driver_opts:
type: "nfs"
o: "addr=192.168.1.10,nolock,soft,rw"
device: ":/volume1/SurveillanceVideos"