This commit is contained in:
kev 2020-02-12 09:54:46 +08:00
parent fd45cbe8bb
commit 8c0e4f724d
4 changed files with 47 additions and 0 deletions

View File

@ -356,6 +356,7 @@ A collection of delicious docker recipes.
- [x] vnc
- selenoid-ui
- [x] sentry
- [x] atmoz/sftp
- [x] scrapinghub/splash
- [x] teamatldocker
- [x] confluence

34
sftp/README.md Normal file
View File

@ -0,0 +1,34 @@
sftp
====
![](https://raw.githubusercontent.com/atmoz/sftp/master/openssh.png)
## up and running
```bash
$ chown root:root data
$ docker-compose up -d
$ sftp -P 2222 foo@localhost
foo@localhost's password: ******
Connected to foo@localhost.
>>> version
SFTP protocol version 3
>>> ls
upload
>>> put README.md upload
Uploading README.md to /upload/README.md
>>> bye
$ tree data
data
├── bar
├── baz
├── foo
│   └── upload
│   └── README.md
└── users.conf
```
:warning: Changes to existing users are ignored.

3
sftp/data/users.conf Normal file
View File

@ -0,0 +1,3 @@
foo:123:1001:100:upload
bar:abc:1002:100:upload
baz:xyz:1003:100:upload

9
sftp/docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
sftp:
image: atmoz/sftp:alpine
ports:
- "2222:22"
volumes:
- /etc/ssh
- ./data:/home
- ./data/users.conf:/etc/sftp/users.conf:ro
restart: unless-stopped