Skip to content

heyvaldemar/sftp-traefik-letsencrypt-docker-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFTP with Let's Encrypt Using Docker Compose

📙 The complete installation guide is available on my website.

❗ Change variables in the .env to meet your requirements.

💡 Note that the .env file should be in the same directory as sftp-traefik-letsencrypt-docker-compose.yml.

Create networks for your services before deploying the configuration using the commands:

docker network create traefik-network

docker network create sftp-network

Deploy SFTP using Docker Compose:

docker compose -f sftp-traefik-letsencrypt-docker-compose.yml -p sftp up -d

Change the ownership of the user1 directory.

Replace 1001 with the UID for user1 as specified in your .env file.

In this setup, we are using UID 1001 for user1.

sudo chown -R 1001:1001 /srv/sftpusers/user1

Change the ownership of the user2 directory.

Replace 1002 with the UID for user2 as specified in your .env file.

In this setup, we are using UID 1002 for user2.

sudo chown -R 1002:1002 /srv/sftpusers/user2

You can connect to your SFTP server using hostname, port, username and password previously set in the .env.

Author

I’m Vladimir Mikhalev, the Docker Captain, but my friends can call me Valdemar.

🌐 My website with detailed IT guides
🎬 Follow me on YouTube
🐦 Follow me on Twitter
🎨 Follow me on Instagram
🧵 Follow me on Threads
🐘 Follow me on Mastodon
🧊 Follow me on Bluesky
🎸 Follow me on Facebook
🎥 Follow me on TikTok
💻 Follow me on LinkedIn
🐈 Follow me on GitHub

Communication

👾 Chat with IT pros on Discord
📧 Reach me at ask@sre.gg

Give Thanks

💎 Support on GitHub
🏆 Support on Patreon
🥤 Support on BuyMeaCoffee
🍪 Support on Ko-fi
💖 Support on PayPal