Add nfs volumes
This commit is contained in:
parent
83a9247627
commit
b2de4a4846
30
docker-compose-nfs.yml
Normal file
30
docker-compose-nfs.yml
Normal file
@ -0,0 +1,30 @@
|
||||
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:
|
@ -1,8 +1,21 @@
|
||||
version: '3'
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
minigrida:
|
||||
build: .
|
||||
image: minigrida
|
||||
volumes:
|
||||
- ../TMP_thecomedian_Enrichment:/app/Enrichment
|
||||
- ../TMP_thecomedian_Data:/app/Data
|
||||
- enrichment:/app/Enrichment
|
||||
- data:/app/Data
|
||||
|
||||
volumes:
|
||||
data:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=172.22.160.165,nolock,soft,rw"
|
||||
device: ":/srv/nfs/data"
|
||||
enrichment:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=172.22.160.165,nolock,soft,rw"
|
||||
device: ":/srv/nfs/enrichment"
|
||||
|
Loading…
Reference in New Issue
Block a user