Init SFTP

This commit is contained in:
Joey Hafner 2022-04-28 13:26:49 -07:00
parent 54c090788f
commit 29c8368fdc
3 changed files with 6 additions and 16 deletions

View File

@ -1 +1 @@
DOCKER_DATA=/home/joey/data/wireguard DOCKER_DATA=/mnt/md0/sftp

View File

@ -1,23 +1,12 @@
version: "3" version: "3"
services: services:
sftp: sftp:
image: linuxserver/wireguard image: atmoz/sftp
container_name: sftp_sftp container_name: sftp_sftp
restart: unless-stopped restart: unless-stopped
ports: ports:
- 53820:51820/udp - 20340:22
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=America/Los_Angeles
- PEERS=joey-phone,joey-xps13,maddie-phone,acearcher,nas,jafner-chat,jafner-tools
- SERVERURL=www.jafner.net
- SERVERPORT=53820
volumes: volumes:
- ${DOCKER_DATA}/config:/config - ${DOCKER_DATA}/data:/home/sftp/upload
- ./users.conf:/etc/sftp/users.conf:ro
- /lib/modules:/lib/modules - /lib/modules:/lib/modules
sysctls:
- net.ipv4.conf.all.src_valid_mark=1

View File

@ -0,0 +1 @@
sftp:$1$v17Kq7uN$Mthk2QXaPH24SXCFtQa6P.:e:1001