Это видео недоступно.
Сожалеем об этом.
Traefik Proxy v2.0 Docker Basic Tutorial
HTML-код
- Опубликовано: 16 авг 2024
- This is a basic tutorial on how to setup Traefik proxy with a docker compose file, and how to navigate the configuration. This video is meant to teach you how to use traefik as a proxy for your docker containers to serve your app or website.
The docker-compose file used in this video is located at - gist.github.co...
Dynamic configuration file is at - gist.github.co...
Don't forget to subscribe to my channel for the latest content and please leave a like if you enjoyed this content.
appreciate the comments in the config and how you sectioned things off, it helps to have the details and reasons why everything is set up as it is. I plan to try setting this up later today
Great demo. I have been using 1.7 for a while but couldnt wrap my head around 2 due to the major changes. This was a great help. Thank you so much for taking your time with this.
I am very new to Docker and coding all together. I understood more now watching you then reading the documentation!!!
Thank You! I'm so glad that you learned from this video. It was difficult for me in the beginning so I was compelled to make a simple video that people can understand a lot more.
Christian Martins The issue with Docker and kuberenetes is that there are a lot of micro steps that are not spoken off which makes the difficulty of learning said technology increase in Tutorials.
On top of that documentation goes out of date very quickly!!!
One thing I don't get... why would I ever use the docker provider instead of a dynamic config? The docker labels seem like a really inefficient way to set rules since you have to recreate your container just to make minor changes. What's the point? It ONLY detects the port number if docker automatically assigns a port to my container?
fantastic tutorial. i like the way you include a lot of detail towards both the noob side and show pointers for more information. very good
im currently stuck on version 1.7 and im researching 2.0 - I would be interested in a tutorial that outlines multiple wordpress instances spread across multiple domains. also, i run multiple docker hosts to segment home traffic from business traffic. i also have a docker mailserver and i have 1.7 generate certs for my email server. so possibly even a slightly more advnaced tutorial on those topics.
great work ;)
Thank you very much for the feedback my friend. I plan on making a more advanced tutorial in the near future on more of this technology.
Really nice explanation. I had been trying to sort out the redirect for the last couple of days.
Thank You Stu, I was a little lost at first as well, I'm glad you enjoyed it!
Thank you for taking the time to make this video! It was really helpful. Cheers.
First time I hear someone exoplaining it who understands it!
(I remind a quote of Einstein now: if you can't explain it good, you don't understand it enough. Thanks again! Really helpfull)
Very good explanations, thanks, now I'm able to use Traefik !
Thanks for this video. It really helped me a lot. I was able to get a couple of different containers running using this method. I've got a question, though: If I've already got Traefik running, how can I deploy a new server/application (Airsonic, FreshRSS, etc.) and tell it to communicate with the already existing Traefik? Is there a way to do that? If so, would you consider making a video for it?
Please let us know if we can help, DB Tech! community.containo.us/
Super clear and well explained. Really helpfull for the beginners.
Excellent video and really excellent commenting in the files! I was struggling to make v2 work. Now if you could just make a 2nd video showing how to also connect to an external server not running docker :) Thanks for sharing.
Thanks a lot, your video helped a lot to make my project secure!
Good overview of Traefik v2. Keep it up dude!
Thank You very much!
I smashed that like button!
@Christian Martins many thanks for this great video. I've spent a full day trying to figure out how to spin/serve Jar via tomcat-traefik. Your video helped me a lot! Keep up with good work!
good video. thanks for the help. hard to understand the actual docs!
WOW! Just thank you! very very helpful (liked and subscribed)
Thank you very much! I'm so glad you enjoyed it. I'm working on the metrics side of traefik next. I want to make a video on how to see stats, etc.
Bravo!
Thank you, Christian!
Thank You!
Well explained tutorial, thumbs up
fantastic article. but i have an issue ---> middleware "redirect@file" does not exist
man thanks a lot for the vid. Really helpful.
Put the traefik config to a file instead of docker compose file, load that file using docker config file directive and do all this in separate git branch
Great video, thank you!
my dashboard is running correctly now, but the whoami service shows "Page not found".
So how would you have the traefik dashboard exposed to the web, but hidden behind an HTTP auth or something like that? Actually, what would be the recommended way to do that?
he doesn't really explain anything about the web
Great job! Very helpful.
Really cool!!! Thank you so much :3
very good
Thanks it was very helpful !
thanks you a lot!!!
Excellent! Question Why was the dashboard itself not running https? can it be made to do so?
Do you have to place the dynamic.yam file into the docker or does it get created once it starts up?
The dynamic.yaml gets mounted to the inside of the docker container with traefik so that traefik can apply those settings.
I have a question if i want to change main domain .com change to the sub domain .co.th how to do that?
Nice tutorial. I am new to traefik but in my current org they are using traefik for docker swarm. I want to add a new service(domain). I added cert files (key and cert pem)in the https folder and deployed the service but it is showing not secured. Can you help me how to fix this. Let me know if you want any further details.
Hey Chiru! I actually recently hit come big road blocks with SSL myself, I am in the process of understanding every aspect and I will make a video on SSL with Traefik all around. I know this is something a lot of people struggle with! It's easy sometimes and sometimes it just doesn't work! I know it has to do with the cert config or the certs themselves.
Great crash course!
Hey, awesome video. However, when I try to proxy anything and test it, everything appears fine and working but when going to the site I get a 404 page not found.. Any idea what causes this?
Hi, I'm facing the same problem, did you solve it?
Tanks! Did you have config using letsencryt?
Julio, yes I do. letsencrypt is actually fairly simple. Let me find it and I will attach information for you.
@@floridacm86 Yep my acme.json is empty... Using digitalocean hosting. No need to create before ?
@17:33 i notice that you have the same "issue" as me.. the URl for the server is in error state, but the dashboard, etc works fine
is it just a side effect of the service being served from the api@internal or should i worry about it?
I believe it's just a side effect of adding a URL to that service. I'll have to check it out some more and let you know for sure. It works fine right? It's just that service error warning?
Christian Martins yes it works fine otherwise
@@jtktam yeah I wouldn't worry too much about it atm, but remember it is important to have that dashboard locked down and secure in a production environment.
Can you do the same video with docker swarm? I am really stuck.
Great tutorial! Just curious if we can put https redirection in the label instead of external yaml file?
Yes you can! I actually do that now in the labels. docs.traefik.io/middlewares/redirectscheme/
I have a container that expose two ports... I'm using traefik for frontend and the frontend make requests to port 2020 using https on the same container, how can I keep the port 2020 with https.. ?(domain.com:2020)
Hmmm, that's an interesting question. Let me see what I can come up with. I've personally never had to have that situation before.
@@floridacm86 First of all thanks for this great and informative tutorial. I'm currently facing a similar situation where I want to redirect to domain.com:8888. Did you come up with a solution by any chance?
@Christian
Do you also have an example where Consul service is used with Traefik v2.x?
Consul is the solution for having distributed configuration and SSL cert storage if you have a Swarm cluster with multiple nodes.
I'm kind of stuck upgrading my config from v1.7 to v2.1 at the moment.
Hi, I’m still struggling with my instance.
I finaly made it.... Thanks man.
@@user-hu8ct5zt9y I'm glad you made it, thank you for watching. I'm trying to play with some more cool stuff in traefik for a new video as well.
How do I redirect to a non docker container? I would like traefik2 to redirect to my NAS from a subdomain. cloud.mydomain.com ----> NAS
Hey, thanks a lot for the video! It definitely shed some good light on it. But may I ask to elaborate on the following option?
- "traefik.http.routers.nginx-secured.tls.certresolver=mytlschallenge" #
12:40 can I use a url from like godaddy to put there?
Yes you can, you just need to make sure your nameservers are set up properly and the domain is pointing at the server with traefik on it. I use some domains from Bluehost in this setup no problem. Just make sure you have your A Record and nameservers in order.
Christian Martins smaaaaaaaaaaaaaaaaash that like button on this comment!
Christian Martins Ok I want to know how to run a lot of interal stuff on Docker (kuberenetes)
I want a gate to separate a outbound vpn from other traffic that gets used but customers only.
(Customers only setup)
(Business backend)
So I am thinking two setups maybe, I don’t know I am a beginner at all this stuff.
I want a internal vpn on my kubes clusters for/on a multi host solution with a
multi-architectural arm/ripi4b/cloud.
I need a database for customer’s information to have them registered and authorized within the somewhere in the graph business backend??
I don’t know fully where to put the databases I need.
Somewhere a CDN on a exit route-on a physical host to cash traffic.
Maybe a different host is needed for this CDN task?
Load balancer on all my services internally.
(Business back end)
I heard of the ddos of kubes internally and the mess it made for the big boys!
I am thinking a vpns would help cut some things out and make it more secure with kubes.
I am trying to make a business with this set up. So I am offering my customers(vip’s) this service.
“Namespace” seems like something that is important here in this business model of mine.
Please made a video addressing this in depth a absolute beginner like I knows what to do.
What if I wanted namespaces for all my services? How is that done?
How to use them?
How to use them to route my (shiver) my mass traffic on vpn alone?
There is more then this service that I offer my customers.
I don’t want to be like help developer I want you to memorize this IP address internally and externally network wise by heart and here ops here’s the same requirement.
I think name spaces can “kiss” that problem 👋 goodbye.
I am asking a lot :)
I smell a series here!
Christian Martins ps I saw your name as a Martin. I have meet the family. What an awesome bunch of people.
The dad Martin was an engineer like minded person.
I rode in his go cart he built.
Him, his family and I went to Church together.
When I give him a problem as a kid 🧒 I thought he was so cool and he can fix many things and work on things!
So I give you a problem that seems doable ;)
I see what I want to do but I don’t know how to connect all the things I want.
^.^
getting 404 page not found when i try to access the dashboard,
Hi, I'm facing the same problem, did you solve it?
@@ryofukuii yes, you need to deploy it to the manager if you are using docker swarm:
version: '3'
services:
traefik:
# ...
deploy:
placement:
constraints:
- node.role == manager
Do you do paid consulting?
Thanks a lot!!
Thank You so much!