Light weight alpine based SFTP server.
855
This project sets up a secure SFTP server using Docker Compose. It utilizes the techthinkerorg/sftp Docker image to provide SFTP functionality with user management.
Create docker-compose.yaml:
version: "3.8"
services:
sftp:
image: techthinkerorg/sftp:v1.0.0
container_name: sftp
restart: always
ports:
- 22000:22
volumes:
- sftp-data:/home/myuser/upload
environment:
SFTP_USER: myuser
SFTP_PASSWORD: mypassword
SFTP_DIR: upload
volumes:
sftp-data:
driver: local
driver_opts:
type: none
device: /srv/sftp-data
o: bind
Run:
Edit the users.conf file. Each line represents a user in the format: username:password:uid:gid. Example:
docker compose up -d
# or
docker-compose up -d
Content type
Image
Digest
sha256:8258059cd…
Size
11.2 MB
Last updated
11 months ago
docker pull techthinkerorg/sftp:v1.0.0