Master Traefik 3 in 60 min: Best Docker Reverse Proxy

Ғылым және технология

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/anandslab/docker-t...
MY PROXMOX HOST:
🖥️ Topton V700 Intel i7-13800H Mini PC with 64 GB RAM: www.smarthomebeginner.com/go/... (Affiliate Link)
🔗 Best Mini PC for Proxmox: www.smarthomebeginner.com/bes...
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....

Пікірлер: 33

  • @AnandsLab
    @AnandsLab2 ай бұрын

    POST PUBLICATION NOTES: * Traefik is a huge subject. Can't cover everything. But this should get you started.

  • @hanley-development
    @hanley-development2 ай бұрын

    Fantastic!🎉

  • @jaffo73
    @jaffo732 ай бұрын

    Thanks! Great Video and Great Guides.

  • @AnandsLab

    @AnandsLab

    2 ай бұрын

    Thanks man. I appreciate it. Good catch there on the picture.

  • @azizmetchonou
    @azizmetchonou2 ай бұрын

    A master piece man thank you

  • @AnandsLab

    @AnandsLab

    2 ай бұрын

    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!

  • @hanley-development

    @hanley-development

    2 ай бұрын

    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.

  • @AnandsLab

    @AnandsLab

    2 ай бұрын

    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.

  • @kano96
    @kano966 күн бұрын

    Great video and got it all working per the video, however unable to access the traefik dashboard via my internal network.....any ideas?

  • @kano96

    @kano96

    6 күн бұрын

    don't worry I reviewed your video again saw you mention enabling the api.insecure=true and it's associated ports. all working now!

  • @johnbenbow2450
    @johnbenbow2450Ай бұрын

    Hi, how would I modify the traefik config to use duckDNS opposed to cloudflare?

  • @AnandsLab

    @AnandsLab

    Ай бұрын

    That is quite difficult to say in just a few words. I will try to create a separate video on it.

  • @oliverdachroth8892
    @oliverdachroth8892Ай бұрын

    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.

  • @AnandsLab

    @AnandsLab

    Ай бұрын

    The September CF change has nothing to do with Traefik. So it should work.

  • @Popcorncandy09
    @Popcorncandy092 ай бұрын

    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.

  • @AnandsLab

    @AnandsLab

    2 ай бұрын

    That is an interesting finding. I have no experience or have not tried that yet.

  • @Popcorncandy09

    @Popcorncandy09

    2 ай бұрын

    @@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.

  • @darkspirt8629

    @darkspirt8629

    21 күн бұрын

    its not something you want to rely on. I use NPM, and have issues as I didn't understand it, but in time I'll have it figured out. I haven't got the script to do much for me. I can't get it to auctually install traefik yet ;P lol

  • @AnandsLab

    @AnandsLab

    21 күн бұрын

    Traefik is excellent and much more powerful than NPM. The day you understand it, you will realize its full potential.

  • @AnandsLab

    @AnandsLab

    21 күн бұрын

    I do not know if this is has anything do with Traefik though. Have you tried without Traefik (say quickconnect) and were able to handle big files?

  • @marcinszczesny6329
    @marcinszczesny63292 ай бұрын

    Can You do tutorial for authentik + SSO for Home assistant / CalibreWeb etc ?

  • @AnandsLab

    @AnandsLab

    2 ай бұрын

    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.

  • @JandelIsidro
    @JandelIsidroАй бұрын

    What if I dont have a domain registered in cloudflare?

  • @AnandsLab

    @AnandsLab

    Ай бұрын

    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.

  • @umeshkhatiwada4924
    @umeshkhatiwada4924Ай бұрын

    does mysql work on treafik

  • @AnandsLab

    @AnandsLab

    Ай бұрын

    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.

  • @fragdq
    @fragdq6 күн бұрын

    I don't understand the focus on Cloudflare. What if i don't wanna use ir have anything to do with CF? Cant use auto https with Traefik then or what? Im using Caddy right now for all my projects. No issues at all. Im just gathering information about Traefik at the moment to see if a migration from caddy to Traefik would be worth it, or if it has any benefits at all.

  • @darkspirt8629
    @darkspirt862921 күн бұрын

    I think traefik has too many issues to make it useable, I can't get it to foreward a single port. lol The automation is killing it. in a enviroment that is clean and has domains that never used a cert or anything it may just work, but if anything isn't perfect the whole thing crashes... Thats not going to work in a production enviroment.

  • @AnandsLab

    @AnandsLab

    21 күн бұрын

    If you take the time to understand Traefik like you did for NPM, you will have a different opinion. My website, smarthomebeginner.com has been working on Traefik for 4 years and serving 1000s of pages every day. I think that would qualify as a Production environment.

Келесі