Это видео недоступно.
Сожалеем об этом.

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.

Комментарии • 82

  • @timothyn4699
    @timothyn4699 2 года назад

    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

  • @tim_shipp
    @tim_shipp 4 года назад +4

    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.

  • @dustinkrejci6142
    @dustinkrejci6142 4 года назад +1

    I am very new to Docker and coding all together. I understood more now watching you then reading the documentation!!!

    • @floridacm86
      @floridacm86  4 года назад +1

      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.

    • @dustinkrejci6142
      @dustinkrejci6142 4 года назад

      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.

    • @dustinkrejci6142
      @dustinkrejci6142 4 года назад

      On top of that documentation goes out of date very quickly!!!

  • @IAmNumber4000
    @IAmNumber4000 3 года назад +2

    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?

  • @mattaylor5817
    @mattaylor5817 4 года назад +2

    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 ;)

    • @floridacm86
      @floridacm86  4 года назад +1

      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.

  • @mikesturyan9
    @mikesturyan9 4 года назад +3

    Really nice explanation. I had been trying to sort out the redirect for the last couple of days.

    • @floridacm86
      @floridacm86  4 года назад +1

      Thank You Stu, I was a little lost at first as well, I'm glad you enjoyed it!

  • @nirmitpatel7536
    @nirmitpatel7536 4 года назад +3

    Thank you for taking the time to make this video! It was really helpful. Cheers.

  • @welbeschikbaa
    @welbeschikbaa 4 года назад

    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)

  • @sebastienochart
    @sebastienochart 3 года назад

    Very good explanations, thanks, now I'm able to use Traefik !

  • @DBTechYT
    @DBTechYT 4 года назад +5

    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?

    • @TraefikLabs
      @TraefikLabs 4 года назад

      Please let us know if we can help, DB Tech! community.containo.us/

  • @ThatOdooGuy
    @ThatOdooGuy 3 года назад

    Super clear and well explained. Really helpfull for the beginners.

  • @markfisher7342
    @markfisher7342 4 года назад

    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.

  • @detond
    @detond 4 года назад +1

    Thanks a lot, your video helped a lot to make my project secure!

  • @dusda
    @dusda 4 года назад +1

    Good overview of Traefik v2. Keep it up dude!

  • @dustinkrejci6142
    @dustinkrejci6142 4 года назад +2

    I smashed that like button!

  • @cadenza83
    @cadenza83 4 года назад

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

  • @TheJ2quinn
    @TheJ2quinn 4 года назад +1

    good video. thanks for the help. hard to understand the actual docs!

  • @wuegsd
    @wuegsd 4 года назад +2

    WOW! Just thank you! very very helpful (liked and subscribed)

    • @floridacm86
      @floridacm86  4 года назад +1

      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.

  • @kirillpalnitsky3807
    @kirillpalnitsky3807 2 года назад

    Bravo!

  • @TraefikLabs
    @TraefikLabs 4 года назад +2

    Thank you, Christian!

  • @RashidAli-tx3vm
    @RashidAli-tx3vm 3 года назад

    Well explained tutorial, thumbs up

  • @Wild_Leopard
    @Wild_Leopard 3 года назад

    fantastic article. but i have an issue ---> middleware "redirect@file" does not exist

  • @AndresLeonRangel
    @AndresLeonRangel 3 года назад

    man thanks a lot for the vid. Really helpful.

  • @default_youtube_profile
    @default_youtube_profile 2 года назад

    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

  • @engineerfonz
    @engineerfonz 3 года назад

    Great video, thank you!

  • @surajpatil8670
    @surajpatil8670 4 года назад +1

    my dashboard is running correctly now, but the whoami service shows "Page not found".

  • @rockman1811
    @rockman1811 3 года назад +1

    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?

    • @jondoough
      @jondoough 2 года назад

      he doesn't really explain anything about the web

  • @wipfel4308
    @wipfel4308 4 года назад

    Great job! Very helpful.

  • @thanhletri4190
    @thanhletri4190 4 года назад +1

    Really cool!!! Thank you so much :3

  • @umakantshridharchaudhari647
    @umakantshridharchaudhari647 3 года назад

    very good

  • @albukrek
    @albukrek 4 года назад

    Thanks it was very helpful !

  • @user-de7vk7gm7b
    @user-de7vk7gm7b 2 года назад

    thanks you a lot!!!

  • @mwardell18290
    @mwardell18290 3 года назад

    Excellent! Question Why was the dashboard itself not running https? can it be made to do so?

  • @janpfeffer239
    @janpfeffer239 4 года назад +2

    Do you have to place the dynamic.yam file into the docker or does it get created once it starts up?

    • @floridacm86
      @floridacm86  4 года назад

      The dynamic.yaml gets mounted to the inside of the docker container with traefik so that traefik can apply those settings.

  • @user-er7db4rw4m
    @user-er7db4rw4m 3 года назад

    I have a question if i want to change main domain .com change to the sub domain .co.th how to do that?

  • @ChebroluChiranjeevi
    @ChebroluChiranjeevi 4 года назад +1

    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.

    • @floridacm86
      @floridacm86  4 года назад +1

      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.

  • @thoras101
    @thoras101 4 года назад

    Great crash course!

  • @jairvandersterre1002
    @jairvandersterre1002 3 года назад +1

    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?

    • @ryofukuii
      @ryofukuii 3 года назад

      Hi, I'm facing the same problem, did you solve it?

  • @MrJuliolix
    @MrJuliolix 4 года назад +3

    Tanks! Did you have config using letsencryt?

    • @floridacm86
      @floridacm86  4 года назад +2

      Julio, yes I do. letsencrypt is actually fairly simple. Let me find it and I will attach information for you.

    • @n-l-b
      @n-l-b 4 года назад

      @@floridacm86 Yep my acme.json is empty... Using digitalocean hosting. No need to create before ?

  • @jtktam
    @jtktam 4 года назад +1

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

    • @floridacm86
      @floridacm86  4 года назад

      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?

    • @jtktam
      @jtktam 4 года назад +1

      Christian Martins yes it works fine otherwise

    • @floridacm86
      @floridacm86  4 года назад

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

  • @daxcor
    @daxcor 4 года назад

    Can you do the same video with docker swarm? I am really stuck.

  • @chongtszwing
    @chongtszwing 4 года назад +1

    Great tutorial! Just curious if we can put https redirection in the label instead of external yaml file?

    • @floridacm86
      @floridacm86  4 года назад

      Yes you can! I actually do that now in the labels. docs.traefik.io/middlewares/redirectscheme/

  • @jeffersantosss
    @jeffersantosss 4 года назад +1

    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)

    • @floridacm86
      @floridacm86  4 года назад

      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.

    • @NewGenious88
      @NewGenious88 4 года назад

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

  • @codeagency
    @codeagency 4 года назад

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

  • @user-hu8ct5zt9y
    @user-hu8ct5zt9y 4 года назад +1

    Hi, I’m still struggling with my instance.

    • @user-hu8ct5zt9y
      @user-hu8ct5zt9y 4 года назад +1

      I finaly made it.... Thanks man.

    • @floridacm86
      @floridacm86  4 года назад +1

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

  • @tmatinen
    @tmatinen 4 года назад +1

    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

  • @LV-md6lb
    @LV-md6lb 4 года назад

    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" #

  • @dustinkrejci6142
    @dustinkrejci6142 4 года назад +1

    12:40 can I use a url from like godaddy to put there?

    • @floridacm86
      @floridacm86  4 года назад +2

      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.

    • @dustinkrejci6142
      @dustinkrejci6142 4 года назад

      Christian Martins smaaaaaaaaaaaaaaaaash that like button on this comment!

    • @dustinkrejci6142
      @dustinkrejci6142 4 года назад

      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!

    • @dustinkrejci6142
      @dustinkrejci6142 4 года назад

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

  • @faisalabdi6350
    @faisalabdi6350 3 года назад

    getting 404 page not found when i try to access the dashboard,

    • @ryofukuii
      @ryofukuii 3 года назад

      Hi, I'm facing the same problem, did you solve it?

    • @faisalabdi6350
      @faisalabdi6350 3 года назад

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

  • @daxcor
    @daxcor 4 года назад

    Do you do paid consulting?

  • @chikosan99
    @chikosan99 4 года назад +2

    Thanks a lot!!