homelab/server/config/sftp/docker-compose.yml
Joey Hafner 54124da9d1 #31 Add Loki logging for all "main" apps
Also converted a few old composes from 4-space indentation to 2-space
Ignores supporting containers like postgres, redis, etc.
2022-07-13 13:35:56 -07:00

22 lines
571 B
YAML

version: "3"
services:
sftp:
image: atmoz/sftp
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"
restart: "no"
ports:
- 23450:22/tcp
volumes:
- ${DOCKER_DATA}/data:/home/sftp/upload
- ./users.conf:/etc/sftp/users.conf:ro
# https://hub.docker.com/r/atmoz/sftp
# hash a password:
# echo -n "your-password" | docker run -i --rm atmoz/makepasswd --crypt-md5 --clearfrom=-