nginx http server over sshfs remote folder
1.4K
This is the docker project to setup nginx http server over sshfs remote folder.
docker run -it -p 80:80 --cap-add SYS_ADMIN --device=/dev/fuse -v ~/.ssh:/root/.ssh \
-e REMOTE_URL=example.com -e REMOTE_PATH=/remote/path -e REMOTE_USER=example \
fengzhou/nginx-sshfs
docker run -it -p 80:80 --cap-add SYS_ADMIN --device=/dev/fuse \
-e REMOTE_URL=example.com -e REMOTE_PATH=/remote/path -e REMOTE_USER=example \
fengzhou/nginx-sshfs
The container will request password input in startup.
docker run -it -p 80:80 --cap-add SYS_ADMIN --device=/dev/fuse \
-e REMOTE_URL=example.com -e REMOTE_PATH=/remote/path -e REMOTE_USER=example -e REMOTE_PASSWORD=password \
fengzhou/nginx-sshfs
Refer to sample docker-compose.yml file, and configure relative environment variable, and ports.
Content type
Image
Digest
Size
80.8 MB
Last updated
about 10 years ago
docker pull fengzhou/nginx-sshfs