Тёмный

Is this the BEST Reverse Proxy for Docker? // Traefik Tutorial 

Christian Lempa
Подписаться 201 тыс.
Просмотров 491 тыс.
50% 1

Is Traefik the best reverse proxy for Docker? Let's find out in this Tutorial! I explain what reverse proxies and load balancers are. We're setting up Traefik on my Docker Host and expose a simple NGINX web server.
Teleport-*: goteleport.com/thedigitallife
Related Videos/Links
• Kubernetes explained s...
________________
💜 Support me and become a Fan!
→ christianlempa.de/patreon
💬 Join our Community!
→ christianlempa.de/discord
________________
Read my Tech Documentation
christianlempa.de/docs
My Gear and Equipment-*
christianlempa.de/kit
________________
Timestamps:
00:00 - Introduction
00:59 - Why use Traefik?
02:01 - Load balancers and reverse proxies
03:20 - Use cases
04:38 - Deploy and Configure Traefik on Docker
11:09 - Expose a simple NGINX Webserver
15:37 - Traefik SSL Certs Letsencrypt
17:37 - HTTP to HTTPS Redirection
19:38 - Staging and Production Certs
21:02 - What's coming next?
________________
All links with "*" are affiliate links.
#Traefik #Docker #Letsencrypt

Опубликовано:

 

1 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 353   
@MrReutube
@MrReutube Год назад
Cheers Christain, I have recently forced myself to build up my Home lab and your videos are absolutely amazing. I dont normally leave a comment but Traefik has been a bit of a mind melting beast so i thought I need to share my appreciation here :p
@zbooy619
@zbooy619 Год назад
Hi Christian, great content,helped me a lot! About exchanging certs from staging to production - normally you don't do this, because you have separate containers for staging and production, also two different routes/domains for these service. Thanks a lot for your great job!
@marsanmarsipan
@marsanmarsipan 2 года назад
Awsome video explaining a very complex topic. Struggled for setting up traefik for some weeks, so this was what i was looking for. Alot of good info here.. Keep it up!
@PaulLittlefield
@PaulLittlefield Год назад
Great starter video, it really helped me move from NPM to Traefik - thanks Christian and Merry Christmas! 🙂
@willytylee
@willytylee 2 года назад
oh my goodness! I saw quite a lot of similar tutorial, this one is the simplest and the most understandingable video I have even seen!
@christianlempa
@christianlempa 2 года назад
Thank you so much :)
@MMMS75
@MMMS75 Год назад
This is a perfect tutorial and speed, thanks dude. You hit the important points quickly. Too many tutorials and overviews are 30-60+ minutes. Not sure who has that kind of time to watch. Usually we’re trying to quickly solve a problem. We may not need to become an Uber infrastructure expert, but need to learn enough quickly to solve problems and know where to keep ourselves out of trouble. Thanks again!
@christianlempa
@christianlempa Год назад
Thank you bro!
@ReligionAndMaterialismDebunked
Plenty of us have the time. 💀💀💀💀💀😂😂 The average person, unlike me nowadays, spends hours a day on social media, and builds up extra anxiety, depression, etc. 😂💀🙊🤓
@chibiichen
@chibiichen 10 месяцев назад
The only point I don't understand is how to install Portainer with it because it seems like he has installed it before installing Traefik. And I don't know how he got this with a SSL cert and the domain working...
@lapoubelle77
@lapoubelle77 4 месяца назад
@@chibiichen I believe you should just add the same labels in the portainer docker compose file - obviously you will need to change the host label to point to your portainer
@onehumanwasted4228
@onehumanwasted4228 2 года назад
Awesome! Exactly what I was looking for. Best traefik totorial I found so far! Thank you!
@christianlempa
@christianlempa 2 года назад
Thank you so much :)
@ronald0122
@ronald0122 2 года назад
I use traefik but nginx is way easier. Thanks again my bald online friend.
@christianlempa
@christianlempa 2 года назад
Haha, you're welcome
@Cyperlina
@Cyperlina 2 года назад
my nginx reverse proxy won't make the ssl :// kinda queless
@abdulrahmanfagiry8189
@abdulrahmanfagiry8189 2 года назад
I agree,, nginx is much easier, simple and powerful
@OverAndOverAndOver
@OverAndOverAndOver 2 года назад
Nginx won't give me let's encrypt certs or even just act as a reverse proxy, it sucks
@GadgeteerZA
@GadgeteerZA 2 месяца назад
@@OverAndOverAndOver you actually want Nginx Proxy Manager for that - it certainly does ssl certs, custom ports, access rules, custom paths, etc. But it's advanced configs is a bit difficult.
@0bl
@0bl 15 дней назад
Well done mate. I was waiting with networking for too long with my app built on microservices. Your video was great entrypoint!
@heathblandford6493
@heathblandford6493 2 года назад
This was a seriously great video. Thank you so much for this! Love the content.
@christianlempa
@christianlempa 2 года назад
Thank you so much! ;)
@OthmanAlikhan
@OthmanAlikhan Год назад
Thanks for the video =) Managed to setup Traefik with a bunch of other containers (e.g. portainer, pihole) by watching this video.
@Blivius92
@Blivius92 10 месяцев назад
Christian, I really love these tutorials, I only mis a few topics here for traefik. These are: Access list External application (via dynamic yml file) Hope you can address these maybe in a next video. Keep up the good work! Btw I’m running traefik now thanks to your latest nginx “little projects” video. Cost me 6 days because the traefik config file cannot handle tabs but only spaces…. Yeah😂
@MiguelMarinho
@MiguelMarinho 2 года назад
Great work. Thank you very much for all the knowledge sharing!
@christianlempa
@christianlempa 2 года назад
Glad it was helpful!
@nothingtoseehere5760
@nothingtoseehere5760 Год назад
Really one of the best guides on this subject. Thanks! Would love to see a way to secure the traefik dash natively (without teleport)
@christianlempa
@christianlempa Год назад
Thanks! There will be something new coming ;)
@winstonsmith9512
@winstonsmith9512 2 месяца назад
Thanks for the tutorial Christian! I can understand you perfectly fine, you do not need to slow down.
@christianlempa
@christianlempa 2 месяца назад
Thank you for watching :)
@Stjarnadian
@Stjarnadian 2 года назад
Awesome video! Thank you for sharing you knowledge with us 👍
@christianlempa
@christianlempa 2 года назад
Thank you! 😉
@saragasmichalis2177
@saragasmichalis2177 Год назад
Super useful. Thanks man !!
@m4heshd
@m4heshd 2 года назад
Lifesaver. You're so good at what you do. BTW I love how you pronounce the word "container". 😊
@christianlempa
@christianlempa 2 года назад
Thanks mate ;)
@getteched2412
@getteched2412 2 года назад
Haha, I wish I had this video like 3 weeks ago. Took me around 3 days to fully understand how Traefik works, but it's one of the best reverse proxies I have used and fully recommend to anyone. I myself use something called Authelia, definitely not as complicated as Teleport but does provide SSO for your services on a much smaller scale Although the learning curve is high, it's well worth it. Great tutorial man, really enjoyed this one.
@christianlempa
@christianlempa 2 года назад
Thank you! Yeah I can feel you, took me a few days as well to understand it :D
@Seantherightway06
@Seantherightway06 Год назад
Best explanation I’ve found. Instant subscribe!
@christianlempa
@christianlempa Год назад
Thank you bro :)
@dermuschelschluerfer
@dermuschelschluerfer 2 года назад
I just love traefik. Just have labels in your docker compose and instantly get an ssl secured subdomain for the application you run.
@pullel
@pullel 2 года назад
honestly this tutorial is just incredibly good!
@christianlempa
@christianlempa 2 года назад
Glad you think so!
@plume666
@plume666 8 месяцев назад
Thank you for this tutorial! Did you also managed to get multiple simple docker hosts controlled by traefik without using something like e.g. docker swarm?
@austinmesta9862
@austinmesta9862 Год назад
Great video... And THANK YOU for properly referring to /etc/ as etcetera and not as Etsy
@MrReutube
@MrReutube Год назад
its extra terrestrial conf... everybody knows that!!!
@TecraTube
@TecraTube 2 года назад
damn bro, you're hella fast! thanks for sharing some of your skillz!
@pauljennings
@pauljennings 2 года назад
thanks for sharing! Love it :)
@christianlempa
@christianlempa 2 года назад
You're welcome :D
@michaels8336
@michaels8336 Год назад
Slightly off topic question but what software do you use for your drawing/blur effect in the video?
@sefumies
@sefumies 2 месяца назад
Fantastic Tutorial!
@christianlempa
@christianlempa 2 месяца назад
Thank you so much :)
@MrFrankc420
@MrFrankc420 2 года назад
Thanks, you made this look easy! =)
@christianlempa
@christianlempa 2 года назад
Thank you! :)
@EvgeniyYatsenko
@EvgeniyYatsenko 9 месяцев назад
Great stuff!
@krushnapardeshi3694
@krushnapardeshi3694 2 года назад
Best Video Tutorial Ever Seen On Traefik Proxy.
@christianlempa
@christianlempa 2 года назад
Wow, thanks!
@monkeysausageclub
@monkeysausageclub 11 месяцев назад
Compered to NPM this is a pretty complicated install but worth doing for some considering NPM has some issues. Nice work sir, one day I will take the time to learn how to do this, for now I will stick with NPM.
@chibiichen
@chibiichen 10 месяцев назад
What issues does NPM have?
@TheRedshift_
@TheRedshift_ 9 месяцев назад
@@chibiichen The biggest one, which ive found out only today while trying to use it with docker swarm, is that the webUI still doesn't have support for loadbalanced upstreams. It was first submitted as a missing feature on the github 4 years ago, cited as coming with v3 which is still nowhere to be seen. As things stand, if I want to run my docker swarm setup through NPM, i'd have to manually edit configuration files any time I want to add or remove a service, which then breaks any time I make changes. The fact this feature was put off, saved for v3, which still hasn't come after all this time is a major reason for moving away.
@rrogan2002
@rrogan2002 2 года назад
Awesome video! Does anyone know how to add a 2nd web server so it's load balanced? I duplicated my 1st web server container with a different name but Traefik treats it as a separate service. I have been reading through their documentation but haven't been able to figure it out.
@hectorrijo7257
@hectorrijo7257 2 года назад
Very useful 👌
@christianlempa
@christianlempa 2 года назад
Thanks a lot
@tomashertl8895
@tomashertl8895 2 года назад
Great and usefull video, thanks a lot!
@christianlempa
@christianlempa 2 года назад
You're welcome 😀
@maxpursian
@maxpursian 2 года назад
Looks like I'm gonna migrate from my freshly set up NPM to Traefik today :') Thanks for putting this on my radar!
@christianlempa
@christianlempa 2 года назад
Nice! Good luck then 😁
@testes2390
@testes2390 2 года назад
Hello! thank you for your great youtube content, I would like to use traefik for the first time, and I want to keep my legacy services that are not in containers (no docker), is it possible to set up DNS challenge with cloudflare for this setup? I mean without any configuration related to docker? I have not found any docs, tutorials that can help me, should I put the api token from cloudflare in a linux environment variable? thank you!
@geraldmaale
@geraldmaale Год назад
Thanks, Chris for this wonderful video. I can now sleep peacefully 😊
@christianlempa
@christianlempa Год назад
Haha you’re welcome ☺️
@HulksterHogan
@HulksterHogan 2 года назад
Can you not have the traefik docker install route to services on your local network outside of its docker network? Some of my services are just running in separate VMs instead of containers.
@banalidadesculturapop4988
@banalidadesculturapop4988 2 года назад
Amazing video , It did worked a 100% , Now i want to route traffic to my old server . How i do that ? Do I set up an htpp provider ? your help is greatly appreciated
@russjr08
@russjr08 Год назад
This is probably a silly question, but Traefik can handle reverse-proxying for things that aren't Docker/K8s containers right? All of my services run in a bunch of Proxmox nodes, and while I do have quite a few services that are in docker containers, a pretty significant amount of them are also LXCs that run through Proxmox as well. I currently use Nginx Proxy Manager, but I'm finding that there are often times where I feel the configuration I need goes against the grain of what it's designed for, and I'd also like to maybe start doing some automation as well and I've heard Traefik's API is quite nice (whereas NPM does have an API that the dashboard consumes, but it's not well documented at all) so Traefik seems to be shaping up to be a pretty decent candidate to replace NPM for me so long as I can just tell it "When you get a request at this host, redirect it to this IP + Port".
@ercanyilmaz8108
@ercanyilmaz8108 Год назад
Thanks for this excellent video. I watch it at speed rate of 0,75 to follow it. 😁 But it is interesting actually and I want also apply this for my TrueNas server.
@SnorreSelmer
@SnorreSelmer Месяц назад
Thanks for making this video! I tried Traefik a couple of years ago, didn't understand a thing, and looking at your video now, I'm going "wait, it's _that_ easy? :D"... I'd like to say though, since config-changes to the traefik.yaml file require a restart, putting it in the docker-compose.yaml file makes more sense to me since it removes the need for two files, down to one, and you're already in the right location editing the docker-compose.yaml file to restart the service.
@christianlempa
@christianlempa Месяц назад
Haha thank you! Glad it could help you :)
@evgeniibushtyrev7766
@evgeniibushtyrev7766 5 месяцев назад
"You could now just wait for a 90 days HAHA" - that's probably the best part xD
@christianlempa
@christianlempa 5 месяцев назад
:D
@user-rz7mx8ns9n
@user-rz7mx8ns9n 2 года назад
sir please do a video on hosting multiple websites with docker & nginx using subdomains
@RandyandPetraJ
@RandyandPetraJ 10 месяцев назад
Danke Christian! Question, maybe basic, so sorry if so. So, say I deploy a Linode Linux server, then put Docker on it and install Portainer to manage the docker. Then I run through this tutorial to put a get Traefix setup as a container. How can I put Portainer behind Traefik? Or do I need to? Thanks again
@Phyx1u5
@Phyx1u5 Год назад
Hi thanks for the tutorial, do you have a website that categories all your videos?
@ganon4
@ganon4 2 года назад
Was using traefik but now I switched to caddy. For simple configuration is easier. For complex configuration is easier.
@001101101111
@001101101111 9 месяцев назад
Hello Christian, I had a question about the routes. When I have a standalone OpenVPN server on the network and I want to route it through Traffik, it doesn't work. Do you know how to approach this problem? First of all OVPN can be accessed via TCP or UDP. I would be glad about a feedback.
@hwd1978
@hwd1978 2 года назад
Thank you very mach!
@jackbuechler
@jackbuechler Год назад
Very good video and tutorial. I have a pfsense router in front of my Truescale server. so now I am confused wherethe reverse proxy should be configured and how to do that and still pass traffic through the pfsense router. Can you help / or do another video as this is a very common setup and confusing where the certificates all go. I would like to use a wild card certificate on both the Pfsense and Truescale servers
@swissbuechi
@swissbuechi 2 года назад
Thank you very much for this interessting video. Maybe you should mention that it is not a good practise to put all your containers in the traefik network. Best practise is to create a new "proxy" network for every container that needs to explicitly expose a service via traefik. This will ensure all your backend containers of your service stack (databases, etc...) are not accessible from traefik and also most important are not accessible from other docker containers running behinde traefik web proxy.
@christianlempa
@christianlempa 2 года назад
Thanks! Yeah that might be a topic for a separate video.
@pot8778
@pot8778 2 года назад
great job, thank you
@christianlempa
@christianlempa 2 года назад
Thank you too!
@doriandoussain1528
@doriandoussain1528 8 месяцев назад
Love you my, friend, like and comment done!!
@christianlempa
@christianlempa 8 месяцев назад
Thanks!
@gsprlls
@gsprlls 2 года назад
Great video. If I want to set it up only on local network, do I still need to buy a domain? I assume using a local dns server would solve it without a domain.
@christianlempa
@christianlempa 2 года назад
Thanks! No you don't need to buy a domain, when it's local, but you'll need to mess around with self-signed certs then, I guess. Might be not as straightforward, but possible. Btw I'm also using self-signed certs locally.
@Theborg72
@Theborg72 Год назад
like your clip, plan to switch and your clip helped a little along the way. But what I haven't find a answer if i have have several different servers. lets say a web server which is pure server and another docker server different machine. etc.. Would appreciate it if you could make one that also points to other servers in the same network.
@HirschyKiss
@HirschyKiss 17 дней назад
Man, i'm really struggling with cloudflare DNS challenge. I would love an update to this guide. You kinda sorta not really put stuff in the boilerplate, but it has zero context. Thank you!
@kurt_hansen
@kurt_hansen 2 года назад
So, do i need to portforward the ports 80 and 443 from my internet router to the docker host where traefik is running?
@Hafenstrand5
@Hafenstrand5 Месяц назад
Great video, but can I also use traefik to get certificates from my local services without having an external dns pointing to it?
@danielruffolo6549
@danielruffolo6549 3 месяца назад
In this tutorial, Is portioner itself being resolved though Traefik or is Portainer just a container with no SSL?
@Robin-il8nc
@Robin-il8nc Год назад
I have a question related to using traefik with kubernetes. So at home I have a k3s cluster with 2 raspis where i would like to run some application ans theres also a Synology NAS which exposes some services aswell. I'm quite new to the whole networking stuff so I'm trying to figure out how to setup traefik the best way. If its setup inside kubernetes for example would it still be possible to route incomming traffic to other machines in the network such as the NAS?
@RifatErdemSahin
@RifatErdemSahin 2 года назад
Gr8 video mate i would do the example
@subzizo091
@subzizo091 Год назад
hi Christian thanks for the great content i follow the tutorial but unfortunately i got error 404 page not found and i did the || label but got same error
@evkonoff
@evkonoff 2 года назад
Great video but I have a question. Would you say it is secure to expose dashboard/admin webui to specific IP, let's say VPN IP? As far as I know you can do it by simply adding the desired IP to -p
@christianlempa
@christianlempa 2 года назад
It's a viable option, I also sometimes do firewall rules based on my static public IP or internal VPN ip. However, it's probably not the "best" way to do it, I'll explain that in a future video soon, when we talk more about modern network security concepts which will go away from traditional vpn (internal/external network) concepts! Stay tuned, there is more stuff in that space coming :)
@evkonoff
@evkonoff 2 года назад
@@christianlempa For me it's the option that keeps me from learning iptables he-he. I am always tuned, keep up great work.
@AinzOoalG0wn
@AinzOoalG0wn 7 месяцев назад
Christian, how do u do traefik labels when a container uses multiple ports e.g. 6060:80 3262:8080 4363:9354 And then there is also the possibility of a multiple container images in the docker compose which also use their own ports. Is there any docker compose example how this type of traefik deployment would look like? If it was just one port, i would know how to do as i got that to work. but i'm having issues figuring how to deal with multiple ports required x-x;
@lucEast
@lucEast Год назад
Simply the best tutorial about Traefik. I never understood the labels and wasn't too sure about the difference between the dynamic and static configuration.
@christianlempa
@christianlempa Год назад
Thanks! :)
@daledriver5469
@daledriver5469 11 месяцев назад
Static - Traefik will read at startup Dynamic - Traefik will watch for any change during runtime and reflect on it (only if you enable file or folder watch). Label - Similar to Dynamic, but Traefik will watch the label on the container on Docker. The benefit is that traefik will add a rule as soon as the container is up, but if it goes down, it gets removed.
@therus000
@therus000 8 месяцев назад
Is it true, that I should add a treafik network to every stack I got in portainer to got access to use it with other containers in portainer?
@kimsec
@kimsec Год назад
Hello, great video! if i have more then one node, can i use the same traefik for all nodes somehow? :D
@nwdsc
@nwdsc 2 года назад
You may have covered this and I just missed it but can I configure a proxy to connect to a service running at a different IP address? I have a Bitwarden and a website running on a Raspberry Pi that I would like to connect to. Thank you.
@christianlempa
@christianlempa 2 года назад
Sure, you can add a dynamic configuration in the Traefik config file to route a connection to a custom IP address, that could be anywhere. It might be not as straightforward as on the same node, but it's technically possible.
@heinzbroehl4598
@heinzbroehl4598 2 года назад
Caddy2 seems to be more light weight and at least as easy as Traefik
@winfle
@winfle Год назад
Is there any sense of using traefik, if we already have ELB and also internal Swarm load balancer?
@brandonwisenburg8899
@brandonwisenburg8899 5 месяцев назад
I followed this tutorial line by line but I can't access the dashboard? What could I possibly be doing wrong?
@mariomichalik9015
@mariomichalik9015 5 месяцев назад
same problem
@ierosgr
@ierosgr 2 года назад
10:19 where you mention about exposing the dashboard, I cant quite understand what you mean. Dont do this in production ...so do what instead? If you dont open the port from the router what difference does it makes if you bind port 8080 of the host to the port 8080 inside the docker? PS even thougjh all of your videos are quite nice and presentation also you speak too fast (even though i can understand you ) and the general meaning \explanation is lost at the end.
@DimitriPappas
@DimitriPappas 2 года назад
Yeah if you don't open it on the router you should be fine. The warning is there to encourage you to use internal docker network with a reverse proxy and authentication mechanism if you want to expose it to the public
@housemann2770
@housemann2770 2 года назад
Nice one, thanks! Is it possible to setup traefik on one Docker Host and NGiNX on another Docker Host and label it without a Docker Swarm?
@christianlempa
@christianlempa 2 года назад
Haven't done it with swarm, yet :/
@housemann2770
@housemann2770 2 года назад
@@christianlempa the questions was: without Swarm, but two Docker Hosts
@winstonsmith9512
@winstonsmith9512 Месяц назад
Do you think a video about how you approach 'bind mounts vs named volumes' would be worth making? I see that it's kind of a mixed bag in your boiler plate templates.
@christianlempa
@christianlempa Месяц назад
Maybe it would be nice to do a "docker best practices"? Let me think about it
@hdfotopl
@hdfotopl Год назад
Hi. You helped me a lot in getting to know traefik. However, I need help with nextcloud, specifically nextcloudpi on docker. After setting everything up. I'm getting an Internal Server Error on the page.
@johngrear6506
@johngrear6506 Год назад
Hi, just wondering why in the your latest boilerplate docker-compose.yml file, it no longer has the volume for the ssl certificates. Is this no longer necessary? Won't they still get lost if the container is stopped?
@christianlempa
@christianlempa Год назад
I'm storing the certs in the /etc/traefik/certs folder which is alredy stored in a volume, so I thought I could remove it.
@johngrear6506
@johngrear6506 Год назад
@@christianlempa Thanks for replying. Makes sense 🙂
@thecatman2000
@thecatman2000 4 месяца назад
Why does your Portainer dashboard look nicer and have more options than mine? And it doesn't say if it's CE or BE?
@larsskage5584
@larsskage5584 2 года назад
Great video! I have learned a lot from your channel. Don't stop making good content! I have a RPi4 with Docker & Portainer that I'd like to use as my reverse proxy to handle the portforward from my router, not only for the containers on that machine but also all other machines in my home, but mainly my K3S-RPi-cluster. Your NPM-video inspired me, but after watching this I might give Traefik a go, especially since it is the default ingress in the later versions of K3S. How would I do that? Perhaps an idea for a new video 🙂 I'd like to secure all of them centrally with something like Authelia. All information or videos I find, are either Docker only or Kubernetes only and I have a hard time figuring out what or how to set this up. TIA
@christianlempa
@christianlempa 2 года назад
Thank you so much :) And yeah k3s and authelia a both on my list for future videos! Will take some time though :)
@majdd1173
@majdd1173 2 года назад
I second the traefik, authelia request as I have a docker plex media server setup, and my containers' network relys on Gluetun VPN container. I'm finding a hard time figuring out how to seamlessly connect traefik,authelia,vpn container
@chibiichen
@chibiichen 10 месяцев назад
Did you also install Portainer with Traefik? I wonder because you use it in the video but you didn't show how you installed it.
@auliarahman755
@auliarahman755 2 года назад
Can we using proxy reversing to the docker container while we using UFW ? i try using UFW to allow port 80 and 443 but it blocked port expose docker, how to using UFW instead using proxy reverse to docker container ?
@Shurrikane
@Shurrikane 2 года назад
run: "ufw allow in on docker0" then change DEFAULT_FORWARD_POLICE to “ACCEPT” in /etc/default/ufw reload using: "ufw reload"
@harguee
@harguee Год назад
Hi @christian Thanks for the amazing tutorial. For some odd reason my traefik is not coming up. I did a tcpdump to check on it. I see the traffic coming in and out of the machine, however nothing displays. Although I have to say in my tcpdump am having a length of 0
@christianlempa
@christianlempa Год назад
You're welcome! :) If you have a problem, join our discord, maybe somebody can help you.
@Proud-Papa
@Proud-Papa 6 месяцев назад
how would you run traefik with Pi-hole both using the port 80?
@rGunti
@rGunti Год назад
If Traefik lets me define all my domains and targets in a config file that I could commit to Git and reproduce with one click, then I'm sold. Need to read up on this. Thanks for the introduction.
@RuiFungYip
@RuiFungYip Год назад
You could, if you're using the docker provider it reads configs off container labels., which can live in your compose files, next to the application that needs them. If you're using kubernetes, well, configs are read from there. (Ingress/CRDs) If you just want a directory with loads of files, the file provider lets you load dynamic config from files, feel free to commit that to a git repo. And changes are picked up automatically so, if you have a cronjob auto pulling, well, that works too.
@tcurdt
@tcurdt 2 года назад
Traefik is such a PITA. Super hard to debug configuration issues as soon as things gets only slightly more complicated. Just not worth it. The only positive is that it's easy to use from docker - that's about it.
@artiefischel2579
@artiefischel2579 2 года назад
The configuration files are very convoluted and the documentation is copious without saying much. Yes, PITA sums it up.
@tomaszpankowski8903
@tomaszpankowski8903 Месяц назад
I love you!
@3rg1s
@3rg1s 2 года назад
Hello there, I am doing the exact same steps but portainer does not show any port, and the name of looks like something auto generated: Traefik_traefik.1.ycjh9ftdo0jmli7bp5k31fqht . Any help? Edit: I got the issue, while creating a new stack my stack is created in swarm mode. I had to leave swarm mode with command : docker swarm leave --force and now it creates everything in compose.
@shawn2296
@shawn2296 Год назад
I have issues trying to get ssl to work how would you do the lettsencrypt crts
@hayzeproductions7093
@hayzeproductions7093 Год назад
I noticed the github repository shows a git clone option but has not much information about how to run that. Is there a way to install this without using docker, or kubernetes? I followed your video for nginx reverse proxy in the past. Now that manager has caused a lot of problems and cant for the life of me get it fixed and want to just throw it away honestly.
@yashu6978
@yashu6978 6 месяцев назад
Thanks!
@christianlempa
@christianlempa 6 месяцев назад
Thank you for your support :)
@majorgear1021
@majorgear1021 Год назад
Question, does Traefik need to be on the same server as the docker containers running the apps? In my setup, I have docker running on several computers , and having a single instance of Traefik proxying connections for the services on multiple computers instead of Traefik installed on each one would require less management overhead.
@RuiFungYip
@RuiFungYip Год назад
Only if you've exposed those services over the network. Not sure how well it works with swarm tho. If you're just using standalone docker nodes, its nothing special then compared to something like caddy, since it cant read configuration from docker labels.
@majorgear1021
@majorgear1021 Год назад
@@RuiFungYip Yeah. I tried chaining 2 installations of traefik and failed. I wanted the first on to handle local containers, and forward everything else to a second one on another server. The second one would proxy for it’s local containers. But I got 404 errors and the default traefik cert back for anything on the 2nd traefik proxy . After many hours of researching a way to get it to work, I gave up and configured the first one to proxy for local and external apps. I’m sad because I had to expose ports on the external host for that to work.
@majorgear1021
@majorgear1021 Год назад
@@RuiFungYip I should mention I use ansible pull to configure each docker container , and Traefik is fully configurable that way.
@RuiFungYip
@RuiFungYip Год назад
@@majorgear1021 should check the traefik dashboard then to see if the routers are registered properly then. Thats not enabled by default tho,.
@thetrilbies1
@thetrilbies1 Год назад
Hi Christian, it possible to use Trafik to reverse proxy to other servers in the LAN outside the docker container?
@christianlempa
@christianlempa Год назад
Yes, you need to add it to the config file then
@GrooveNook
@GrooveNook Месяц назад
Hi. I get too many redirects error. What could be the solution?
@kpaxgo
@kpaxgo 9 месяцев назад
Hi, if is possible it will be great an updated tutorial about docker and trafik but with cloudflare dnsChallenge. Thanks again!
@christianlempa
@christianlempa 9 месяцев назад
Yep that's a good one, I'll make that soon :)
@GadgeteerZA
@GadgeteerZA 2 месяца назад
@@christianlempa looking for this too as seems no-one has explained it
@harleyk1ng
@harleyk1ng Год назад
thank you
@1974best
@1974best 2 года назад
Great guide, i need to move from npm to traefik to use zerossl because of expired root cert on letsencrypt (and LG tv's havent updated..)
@christianlempa
@christianlempa 2 года назад
Thanks! :)
@Itshacksmith
@Itshacksmith 2 года назад
hello there, Great fan of your work, I am also a tech geek running my home labs, just a quick query, I am running pihole which is protecting all my internal dns, tried to publish port 53 over internet but it didn't worked out just wanna know any idea how i can put my pihole dns public...
@christianlempa
@christianlempa 2 года назад
Thanks mate! Please don't publish your port 53 online, that's not a good idea.
@Itshacksmith
@Itshacksmith 2 года назад
@@christianlempa I even tried doing that but it didn't worked out don't know why.
@EricLenehan-xs3yt
@EricLenehan-xs3yt Месяц назад
I am having an issue, I started using VS code which I love btw thank you for that, but the issue with my Traefik container is whenever I make changes to the config.yaml file it never changes anything. I can right click and compose down and compose up which does restart it with no issues but does not change anything with the config file, the other container with labels works no issues. But the config is a no go. Also I have tried to execute the bash command docker-compose up -d --force-recreate and I get error's saying the docker-compose file is invalid with the networks option I have and the environment variables in the file. Although I can right click in vs code and use up and down no issues. I am stuck here I don't understand. If you need to see logs I can send you whatever you think. I am just so lost. Would appreciate some help. Oh and BTW I used all of your templates.
@_Xibalba_
@_Xibalba_ 2 года назад
maybe a stupid question but for production resolver you need a propert dns name registered?
@christianlempa
@christianlempa 2 года назад
yes dns is required for SSL certs and domain names
@maeglingondolinsbane3446
@maeglingondolinsbane3446 2 года назад
Great tutorial thanks, could you make one on how to put pihole behind traefik or/and nginxPM ? I think this is one of the major bump for a lot of us.
@DBTechYT
@DBTechYT 2 года назад
What purpose would it serve?
Далее
Traefik 3 and FREE Wildcard Certificates with Docker
39:37
How is it possible? 🫢😱 #tiktok #elsarca
00:13
Просмотров 2,2 млн
Best for Homelab? Traefik vs Nginx Proxy Manager
13:35
Просмотров 157 тыс.
Traefik Crash Course (Without docker)
57:13
Просмотров 47 тыс.
Secure authentication for EVERYTHING! // Authentik
39:50
Reverse Proxy vs API Gateway vs Load Balancer
3:06
Просмотров 96 тыс.
This web UI for Ansible is so damn useful!
20:07
Просмотров 447 тыс.
Don’t run Proxmox without these settings!
25:45
Просмотров 85 тыс.