main
guppy 2023-05-31 14:59:08 +02:00
commit 913a4df6f6
3 changed files with 36 additions and 0 deletions

View File

@ -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

1
exports 100644
View File

@ -0,0 +1 @@
/share *(insecure,rw,fsid=0,sync,no_subtree_check,no_root_squash,no_acl)

10
share/index.html 100644
View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<body>
<h1>This file is on a NFS Share</h1>
<p>Hello World!</p>
</body>
</html>