Master Traefik 3 in 60 min: Best Docker Reverse Proxy
Vložit
- čas přidán 26. 06. 2024
- Traefik proxy is the best dynamic reverse proxy for both Docker and Docker services. Essentially, it allows you to expose your services securely with a proper Let's Encrypt SSL certificate.
This 1-hour Traefik 3 master tutorial would guide you through the full process of setting up Traefik using Docker Compose and make the Traefik dashboard available on a fully qualified domain name with proper SSL certificates.
This will help you set up a strong foundation to secure everything with SSL.
#traefik #reverseproxy #letsencrypt #cloudflare #homelab #homeserver #docker #dockercompose #dockertutorial
TIMESTAMPS
0:00 Intro and Describing the Environment
2:45 Supporting Resources
6:08 Traefik, what you need to know
7:04 Traefik Installation Checklist
7:21 Cloudflare Settings
11:06 Preparation and Checks
20:40 Docker and Traefik Preparation
28:15 Starting Socket Proxy
29:26 Traefik Middlewares, Network, and Secrets
31:26 Traefik Docker Compose
41:06 Additional Traefik Middlewares
43:52 Traefik Staging
48:04 Traefik Production
49:52 Random IP scanning my server
53:10 Traefik Dashboard
54:38 Putting Apps Behind Traefik, Troubleshooting, and Next Steps
55:54 Closing Thoughts
RELEVANT LINKS (in the order of appearance):
🔗 Docker on Proxmox Unprivileged LXC: • Docker on Proxmox LXC ...
🔗 Mounting Remote SMB Shares using Rclone: • Rclone SMB Mount on Ub...
🔗 Ultimate Docker Media Server: • Ultimate Docker Server...
🔗 Docker Traefik Guide: www.smarthomebeginner.com/tra...
🔗 www.smarthomebeginner.com/aut...
🔗 www.smarthomebeginner.com/goo...
🔗 doc.traefik.io/traefik/gettin...
ULTIMATE DOCKER SERVER SERIES:
Playlist: • Mini Homelab Tour - I ...
AUTO-TRAEFIK:
📰 www.smarthomebeginner.com/go/...
🎞️ • Auto Traefik 2 - Docke...
GITHUB REPOSITORIES:
📜 github.com/htpcbeginner/docke...
MY PROXMOX HOST:
🖥️ Topton V700 Intel i7-13800H Mini PC with 64 GB RAM: www.smarthomebeginner.com/go/... (Affiliate Link)
SUPPORT MY WORK:
🤝 www.smarthomebeginner.com/go/...
JOIN THE COMMUNITY:
👋 www.smarthomebeginner.com/go/...
🌐 www.smarthomebeginner.com/
FOLLOW US ON SOCIAL
Get updates or reach out to Get updates on our Social Media Profiles!
👥 Twitter: / anandslab
👥 Facebook: / anandslab
👥 Instagram: / smarthomebeginr
MARKETING PARTNER: www.intisarmediaandmarketing.... - Věda a technologie
POST PUBLICATION NOTES:
* Traefik is a huge subject. Can't cover everything. But this should get you started.
Fantastic!🎉
Thanks! Great Video and Great Guides.
Thanks man. I appreciate it. Good catch there on the picture.
A master piece man thank you
Thank you. It feels good to get it out. I recorded once and spent nearly 30 hours on it last year but did not publish. This time I recorded it 3 times to get through it without hiccups, crashes, etc. Phew!
Traefk in an lxc took me an hour... Finding out authentik doesn't work very well in a lxc... 5 hours. Had to go back to a VM.
Really? Authentik doesn't work very well in a LXC? first time hearing this. I spent over 5 years trying to get authentik to work (docker on LXC) and then gave up just a few days back.
Hi, how would I modify the traefik config to use duckDNS opposed to cloudflare?
That is quite difficult to say in just a few words. I will try to create a separate video on it.
Can You do tutorial for authentik + SSO for Home assistant / CalibreWeb etc ?
I would love to. But before that I will be covering Authelia and Google Oauth. I tried authentic but had some issues. Someone commented that it does not work in Proxmox LXC. I need to investigate that.
I had to move away from your traefik script since using traefik to expose Synology DSM for my family to download from it always times out and fails the downloads around the 1GB mark. Nginx Proxy Manager works fine with the same config...so something wrong with Traefik.
That is an interesting finding. I have no experience or have not tried that yet.
@@AnandsLab it doesn’t seem to handle people with slow internet and must reach a timeout on the entry point or something. Nothing I tried could fix it.
Can i use this After September 2024? I mean Cloudflare with Lets Encrypt for free? Or whats the alternatives. The cloudflare Advanced certificate Manager isn‘t for free.
The September CF change has nothing to do with Traefik. So it should work.
What if I dont have a domain registered in cloudflare?
Traefik supports various providers. Even if you registered your domain with another registrar, most of them still allow you to use Cloudflare as the DNS. That is all you will have to do.
does mysql work on treafik
Can you elaborate? You want to expose Mysql via traefik? using port 443 instead of 3306?
I haven't tried that one. Not sure if it is possible. but I think it might be risky to expose mysql openly.