mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 17:56:53 +02:00
add sftp
This commit is contained in:
parent
fd45cbe8bb
commit
8c0e4f724d
@ -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
34
sftp/README.md
Normal 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
3
sftp/data/users.conf
Normal 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
9
sftp/docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user