First!
commit
913a4df6f6
|
|
@ -0,0 +1,25 @@
|
|||
version: "3.7"
|
||||
|
||||
services:
|
||||
nfs-server:
|
||||
container_name: nfs-server
|
||||
volumes:
|
||||
- ./exports:/etc/exports:ro
|
||||
- ./share:/share:rw
|
||||
image: erichough/nfs-server:latest
|
||||
ports:
|
||||
- 111:111
|
||||
- 111:111/udp
|
||||
- 2049:2049
|
||||
- 2049:2049/udp
|
||||
- 32765:32765
|
||||
- 32765:32765/udp
|
||||
- 32767:32767
|
||||
- 32767:32767/udp
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
- SYS_MODULE
|
||||
privileged: true
|
||||
environment:
|
||||
# NFS_VERSION: 3
|
||||
NFS_LOG_LEVEL: DEBUG
|
||||
|
|
@ -0,0 +1 @@
|
|||
/share *(insecure,rw,fsid=0,sync,no_subtree_check,no_root_squash,no_acl)
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<h1>This file is on a NFS Share</h1>
|
||||
|
||||
<p>Hello World!</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue