Sign inSign up

fengzhou/nginx-sshfs

By fengzhou

Updated about 10 years ago

nginx http server over sshfs remote folder

Image
0

1.4K

fengzhou/nginx-sshfs repository overview

Introduction

This is the docker project to setup nginx http server over sshfs remote folder.

Install

Run with private key (~/.ssh)
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
Run with input password
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.

Run with password from environment variable
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
Use docker-compose

Refer to sample docker-compose.yml file, and configure relative environment variable, and ports.

Tag summary

Content type

Image

Digest

Size

80.8 MB

Last updated

about 10 years ago

docker pull fengzhou/nginx-sshfs