31 lines
941 B
YAML
31 lines
941 B
YAML
version: '3.7'
|
|
|
|
# NFS server require `nfs` and `nfsd` module. You can add them in
|
|
# `/etc/modules-load.d/nfs.conf` for automatic handling during boot.
|
|
|
|
services:
|
|
minigrida-storage:
|
|
image: erichough/nfs-server
|
|
environment:
|
|
NFS_EXPORT_0: '/nfs *(rw,sync,crossmnt,fsid=0)'
|
|
NFS_EXPORT_1: '/nfs/music *(rw,sync)'
|
|
NFS_EXPORT_2: '/nfs/home *(rw,sync,nohide)'
|
|
|
|
#NFS_EXPORT_0: '/nfs *(rw,all_squash,anonuid=1000,anongid=974,fsid=0)'
|
|
#NFS_EXPORT_0: '/nfs *(rw,sync,crossmnt,fsid=0)'
|
|
#NFS_EXPORT_1: '/nfs/enrichment *(rw,sync,all_squash,fsid=0,anonuid=99,anongid=99)'
|
|
#NFS_EXPORT_2: '/nfs/data *(rw,sync,all_squash,fsid=0,anonuid=99,anongid=99)'
|
|
volumes:
|
|
- ./nfs_data:/nfs
|
|
#- data:/nfs/data
|
|
#- enrichment:/nfs/enrichment
|
|
ports:
|
|
- 2049:2049
|
|
cap_add:
|
|
- SYS_ADMIN
|
|
|
|
volumes:
|
|
data:
|
|
enrichment:
|
|
nfs:
|