2022-04-28 12:24:05 -07:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
sftp:
|
2022-04-28 13:26:49 -07:00
|
|
|
image: atmoz/sftp
|
2022-04-28 12:24:05 -07:00
|
|
|
container_name: sftp_sftp
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2022-04-28 13:29:25 -07:00
|
|
|
- 23450:22/tcp
|
2022-04-28 12:24:05 -07:00
|
|
|
volumes:
|
2022-04-28 13:26:49 -07:00
|
|
|
- ${DOCKER_DATA}/data:/home/sftp/upload
|
|
|
|
- ./users.conf:/etc/sftp/users.conf:ro
|
2022-04-28 13:58:59 -07:00
|
|
|
|
|
|
|
# https://hub.docker.com/r/atmoz/sftp
|
|
|
|
# hash a password:
|
|
|
|
# echo -n "your-password" | docker run -i --rm atmoz/makepasswd --crypt-md5 --clearfrom=-
|