TRAEFIK - the BEST reverse proxy? The Ultimate Setup Guide with Docker & Let's Encrypt

  Рет қаралды 30,849

Tech with Marco

Tech with Marco

Күн бұрын

• Traefik DNS challenge ... DNS challenge and wildcard certificates with traefik!
#traefik is the ultimate reverse proxy tool!
In this video I'll show you what Traefik is, how it works, how you set it up, and how a live demo looks like.
The live demo show what the traefik dashboard looks like and how to deploy another docker container behind the reverse proxy. I am using #plausible analytics here.
Traefik uses let's encrypt for certificates and manages them automatically!
*Get 200$ worth of credits in the Digital Ocean Cloud: link.techwithmarco.com/digita... (*)
--
🔐 If you want to improve your security stack even more, head over to my newest video about using a docker-socket-proxy instead of using it directly mounted from the host system!
• Traefik security issue...
--
00:00 - 00:24 Intro
00:25 - 03:21 What is Traefik
03:22 - 05:29 The concept of traefik
05:30 - 12:27 How to use traefik
12:28 - 12:59 Deployment
13:00 - 14:26 Demo time
14:27 - 14:52 Outro
Here you can find the tutorials files on my github:
github.com/marcogreiveldinger...
traefik.io/traefik/
plausible.io/
letsencrypt.org/
-----
Github: github.com/marcogreiveldinger
Become a supporter with Patreon: / techwithmarco
#traefik #plausible #reverseproxy #letsencrypt
--------------------------
(*) -links are affiliate links. (If you buy something through the link, I receive a commission of your purchases. There are no extra costs for you.)

Пікірлер: 29
@unmatal
@unmatal 8 ай бұрын
Thanks a lot man. I have tried many guides, created by many ppl. Yours the one was the most simplest, and yours the one I was able to run with no hassle. Good work man. Much obliged
@techwithmarco
@techwithmarco 7 ай бұрын
Glad to hear that :-)
@Ismoh0815
@Ismoh0815 2 ай бұрын
fully agree!
@gideonyeboahasante8886
@gideonyeboahasante8886 Жыл бұрын
Great video. Thank you.
@techwithmarco
@techwithmarco Жыл бұрын
Thanks mate!
@ThomsBe
@ThomsBe 10 ай бұрын
Thanks for this video. The one thing which makes traefik so special and the best proxy for docker: The static config is simple and fits in a few lines. The dynamic part is truly dynamic. You can add, change and remove routings without restarting traefik. Even other docker stacks on the same machine need only a network and labels. Define web and websecure and you can add hostnames with certificates from different providers without restarting. Try this with any of the "webserver used as reversproxies" approaches. You should mention this in the intro or more often. Second thing: You should take a look at a docker-socket-proxy since you should not mount the socket inside your entry from the outside for security reasons. There is a simple proxy wich is used by some traefik powered projects.
@techwithmarco
@techwithmarco 10 ай бұрын
Thanks for your input! :) And I'll take a look at the docker-socket-proxy. I am aware that it is not ideal, but I was not aware that there seems to be a neat solution to this :-)
@techwithmarco
@techwithmarco 9 ай бұрын
Hey, I had a look at the docker-socket-proxy and made a short update video for that 🙂 kzbin.info/www/bejne/mIDQn56Ajttmb68
@techwithmarco
@techwithmarco Жыл бұрын
Thanks for tuning in! I hope you enjoyed the Traefik tutorial. If you want to support me, demonstrating stuff in the clouds, you can try the digital ocean cloud with 200$ worth of credits if you use my link to sign up (for free of course!). link.techwithmarco.com/digitalOcean Thanks ------- 🔐If you want to improve your security stack even more, head over to my newest video about using a docker-socket-proxy instead of using it directly mounted from the host system! kzbin.info/www/bejne/mIDQn56Ajttmb68
@vanhussen
@vanhussen 21 күн бұрын
it's work! thank you from Indonesia
@icorrelatetech1864
@icorrelatetech1864 Жыл бұрын
Create a playlist for Traefik please :D Good Job and Keep it up!
@techwithmarco
@techwithmarco Жыл бұрын
Thanks a lot! I definitely want to produce more Traefik content as I love it so much :-D
@techwithmarco
@techwithmarco Жыл бұрын
Just that you know, another Traefik video just went online 🙂 kzbin.info/www/bejne/kGOWc32oh7KIg5Y
@primenetwork27
@primenetwork27 5 ай бұрын
Greate video . But i have problem how do i reserve proxy outside in docker
@BrazenNL
@BrazenNL 29 күн бұрын
When presenting, enlarging type (your VS Code window) is not a bad thing. Lots of people consume media on a smaller screen nowadays.
@Darkhellwings
@Darkhellwings Жыл бұрын
Very good video ! Still I have a question, how does traefik know what port should it route the requests to. For instance, you never told it to especially route to port 8080 for the dashboard.
@techwithmarco
@techwithmarco Жыл бұрын
Hey @Saufolein, thanks for the comment! This works as this is a traefik specific feature or configuration which you have to follow according to the docs. Check it out here: doc.traefik.io/traefik/operations/dashboard/ In my example I activated '"--api.dashboard=true"' which means, traefik is exposing the dashboard. In order to view it via an url, you have to define a router attached to a specific service named 'api@internal' (this is how it just works according to the docs), and then you can map the router to a host rule, which in my case is 'traefik.example.com' We don't have to expose any port manually as traefik knows how to route the request to the api@internal service automatically. I hope this makes it a bit more clear to you :-)
@Gr4ph1xZ
@Gr4ph1xZ 23 күн бұрын
Can i also use traefik to expose not a container but instead a internal ip (a other vm) and put https externaly to it? :)
@jakubcihanek
@jakubcihanek 8 ай бұрын
Hi, thanks a lot for the tutorial. Iam thinking about switching from nginx proxy manager to traefik and your video helped me a lot to get it working. Is there a possibility to expose not only docker container but also other things on the network running on different devices using local ip and port of the service? NAS, Homeassistant, router...etc?
@techwithmarco
@techwithmarco 7 ай бұрын
It is possible to export other services, have a look in the docs of traefik. doc.traefik.io/traefik/providers/overview/ You could use for example http, to expose another local network address
@RektaWasHere
@RektaWasHere Жыл бұрын
Did the plausible subdomain already exist beforehand or is there something for treaefik to create it automatically ?
@techwithmarco
@techwithmarco Жыл бұрын
Sorry for the late response.. The subdomain already existed beforehand. You can see how I create them automatically with terraform and github actions. kzbin.info/www/bejne/ZnOxqHR7rL6NoqM There are also a bunch of other different ways to achieve the automatic creation. For example there is a docker container which works together with traefik which registers that traefik has a new subdomain configured and then creates the subdomain on your cloudflare account (github.com/tiredofit/docker-traefik-cloudflare-companion) Or you could also use some wildcard certificates, but for that you have to use dns-challenge.
@onthefarm88
@onthefarm88 7 ай бұрын
Is there a more simple approach if I only want the reverse proxy in my local network? I don't want to expose anything to the internet.
@techwithmarco
@techwithmarco 7 ай бұрын
Yes, you can for sure just play with it in your local network without exposing anything to the world. If you want to use let's say some subdomains like 'service.raspberrypi.local' you would need a local dns server to resolve those addresses in your network automatically. This can be done with PiHole for example. Then you could also benefit from using ssl certs on your local network. I haven't done it yet, but there are also some guides about that on the internet :)
@onthefarm88
@onthefarm88 7 ай бұрын
@@techwithmarco If I have multiple services accessible from different ports on the same server, would pihole be able to handle this on its own or would I need Traefik to handle the addresses resolving to different ports?
@techwithmarco
@techwithmarco 7 ай бұрын
You could use traefik for that, but you could also directly access the your services at their port. I am not completely sure about your setup, so my answers might not be accurate about your problem 😄
@TheOnlyEpsilonAlpha
@TheOnlyEpsilonAlpha Жыл бұрын
Very nice explaination, but there is one detail which is a bit annoying to hear: in the "Demo Time" Chapter when you type something in, it sounds on my headphones like you smack the microphone.
@techwithmarco
@techwithmarco Жыл бұрын
Thank you very much! and thanks for the hint, I was not aware of how this could be for people with headphones... I just thought its a bit like ASMR content smashing the keyboard :-D But I will more careful in the next videos :-)
@TheOnlyEpsilonAlpha
@TheOnlyEpsilonAlpha Жыл бұрын
@@techwithmarco Thank you 🙏
Traefik with CrowdSec - the ULTIMATE SECURITY layer! - Tutorial
22:35
Tech with Marco
Рет қаралды 8 М.
Traefik 3 and FREE Wildcard Certificates with Docker
39:37
Techno Tim
Рет қаралды 83 М.
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 61 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 4,6 МЛН
Traefik vs. Nginx performance benchmark
12:38
Anton Putra
Рет қаралды 37 М.
Is this the BEST Reverse Proxy for Docker? // Traefik Tutorial
21:57
Christian Lempa
Рет қаралды 501 М.
Traefik DNS challenge with wildcard certificates | easy tutorial
13:29
Tech with Marco
Рет қаралды 3,2 М.
Installing Teleport + Traefik (Letsencrypt TLS certs)
23:50
Christian Lempa
Рет қаралды 48 М.
Master Traefik 3 in 60 min: Best Docker Reverse Proxy
56:39
SmartHomeBeginner
Рет қаралды 9 М.
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 299 М.
НЕ ПОКУПАЙ СМАРТФОН, ПОКА НЕ УЗНАЕШЬ ЭТО! Не ошибись с выбором…
15:23
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 3,5 МЛН