mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-21 01:27:01 +02:00
add nfs
This commit is contained in:
parent
39b2387334
commit
ba8a2c6d10
@ -114,6 +114,7 @@ A collection of delicious docker recipes.
|
||||
- [x] mosquitto
|
||||
- [x] motion-arm :+1:
|
||||
- [x] ndscheduler
|
||||
- [x] nfs
|
||||
- [x] nginx
|
||||
- [x] ntopng
|
||||
- [x] nullmailer
|
||||
@ -378,7 +379,6 @@ A collection of delicious docker recipes.
|
||||
- [x] mongo
|
||||
- [x] ccrisan/motioneye
|
||||
- [x] neo4j
|
||||
- [x] erichough/nfs-server
|
||||
- [x] luzifer/nginx-sso
|
||||
- [x] n8nio/n8n
|
||||
- [x] illuspas/node-media-server :cn:
|
||||
|
@ -7,7 +7,7 @@ MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN set -xe \
|
||||
&& apt update \
|
||||
&& apt install -y nfs-ganesha nfs-ganesha-vfs tini \
|
||||
&& apt install -y --no-install-recommends nfs-ganesha nfs-ganesha-vfs tini \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY ./docker-entrypoint.sh /entrypoint.sh
|
||||
|
8
nfs/README.md
Normal file
8
nfs/README.md
Normal file
@ -0,0 +1,8 @@
|
||||
nfs
|
||||
===
|
||||
|
||||
[NFS-Ganesha][1] is an NFSv3,v4,v4.1 fileserver that runs in user mode on most UNIX/Linux systems.
|
||||
|
||||
> :warning: ~90 seconds to sync.
|
||||
|
||||
[1]: https://github.com/nfs-ganesha/nfs-ganesha
|
@ -1,12 +1,13 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
nfs:
|
||||
build: .
|
||||
image: vimagick/nfs
|
||||
ports:
|
||||
- "2049:2049"
|
||||
image: easypi/nfs
|
||||
volumes:
|
||||
- ./data:/data
|
||||
environment:
|
||||
- EXPORT_ID=0
|
||||
- EXPORT_PATH=/data
|
||||
- PSEUDO_PATH=/
|
||||
privileged: true
|
||||
network_mode: host
|
||||
restart: unless-stopped
|
||||
|
@ -1,10 +1,13 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# https://github.com/janeczku/docker-nfs-ganesha/blob/master/rootfs/opt/start_nfs.sh
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
# environment variables
|
||||
|
||||
: ${EXPORT_PATH:="/data"}
|
||||
: ${EXPORT_PATH:="/data/nfs"}
|
||||
: ${PSEUDO_PATH:="/"}
|
||||
: ${EXPORT_ID:=0}
|
||||
: ${PROTOCOLS:=4}
|
||||
@ -52,13 +55,16 @@ bootstrap_config() {
|
||||
echo "* Writing configuration"
|
||||
cat <<END >${GANESHA_CONFIG}
|
||||
|
||||
NFSV4 { Graceless = ${GRACELESS}; }
|
||||
EXPORT{
|
||||
NFSV4 {
|
||||
Graceless = ${GRACELESS};
|
||||
}
|
||||
|
||||
EXPORT {
|
||||
Export_Id = ${EXPORT_ID};
|
||||
Path = "${EXPORT_PATH}";
|
||||
Pseudo = "${PSEUDO_PATH}";
|
||||
FSAL {
|
||||
name = VFS;
|
||||
Name = VFS;
|
||||
}
|
||||
Access_type = RW;
|
||||
Disable_ACL = true;
|
||||
@ -66,7 +72,7 @@ EXPORT{
|
||||
Protocols = ${PROTOCOLS};
|
||||
}
|
||||
|
||||
EXPORT_DEFAULTS{
|
||||
EXPORT_DEFAULTS {
|
||||
Transports = ${TRANSPORTS};
|
||||
SecType = ${SEC_TYPE};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user