diff --git a/homelab/server/config/sftp/.env b/homelab/server/config/sftp/.env index a000f254..3711301a 100644 --- a/homelab/server/config/sftp/.env +++ b/homelab/server/config/sftp/.env @@ -1 +1 @@ -DOCKER_DATA=/home/joey/data/wireguard +DOCKER_DATA=/mnt/md0/sftp diff --git a/homelab/server/config/sftp/docker-compose.yml b/homelab/server/config/sftp/docker-compose.yml index 8cc38526..22bdcc57 100644 --- a/homelab/server/config/sftp/docker-compose.yml +++ b/homelab/server/config/sftp/docker-compose.yml @@ -1,23 +1,12 @@ version: "3" services: sftp: - image: linuxserver/wireguard + image: atmoz/sftp container_name: sftp_sftp restart: unless-stopped ports: - - 53820:51820/udp - 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 + - 20340:22 volumes: - - ${DOCKER_DATA}/config:/config + - ${DOCKER_DATA}/data:/home/sftp/upload + - ./users.conf:/etc/sftp/users.conf:ro - /lib/modules:/lib/modules - sysctls: - - net.ipv4.conf.all.src_valid_mark=1 diff --git a/homelab/server/config/sftp/users.conf b/homelab/server/config/sftp/users.conf new file mode 100644 index 00000000..133e713a --- /dev/null +++ b/homelab/server/config/sftp/users.conf @@ -0,0 +1 @@ +sftp:$1$v17Kq7uN$Mthk2QXaPH24SXCFtQa6P.:e:1001