homelab/server/config/sftp/docker-compose.yml

23 lines
597 B
YAML
Raw Normal View History

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
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
2022-07-14 15:22:44 -07:00
keep-file: "true"
restart: "no"
2022-04-28 12:24:05 -07:00
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=-