Manage multiple sites with Docker Compose and Traefik

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ส.ค. 2024

ความคิดเห็น • 51

  • @aschmelyun
    @aschmelyun  ปีที่แล้ว +13

    You can find the source code for the video as well as some more info on this GitHub repo: github.com/aschmelyun/docker-compose-traefik

    • @ltayn
      @ltayn ปีที่แล้ว

      can you do a tutorial on laravel 9 vite docker vue3? when i am trying to get this working it is going insanely slow. Note i am using wsl.

    • @aasthagupta2165
      @aasthagupta2165 ปีที่แล้ว

      thanku so much

  • @stevecampbell8697
    @stevecampbell8697 9 หลายเดือนก่อน +1

    This is the easiest to understand guide on setting up Traefik with an app that I've found. Thanks!

    • @aschmelyun
      @aschmelyun  9 หลายเดือนก่อน

      I'm glad you liked it! Appreciate the kind words.

  • @mihajlom1k1
    @mihajlom1k1 ปีที่แล้ว +3

    Very helpful tutorial for using traefik locally, thanks a lot!

  • @durgeshkshirsagar116
    @durgeshkshirsagar116 23 วันที่ผ่านมา

    Could you please create a video on setting ssl for traefik.
    Thank you for simple and clear video 🎉🎉

  • @Henry-vr6zr
    @Henry-vr6zr 11 หลายเดือนก่อน +2

    Best explanation yet! Thanks so much.

    • @aschmelyun
      @aschmelyun  11 หลายเดือนก่อน +1

      Glad it was helpful!

    • @Henry-vr6zr
      @Henry-vr6zr 11 หลายเดือนก่อน

      @@aschmelyun One question, however - if I had a NextJS 13 application with a node.js (Express) Backend - and they were both proxied under e.g. Traefik or Nginx so that to get to the site the url would just be e.g. "localhost" and to make requests to the (proxied) backend it'd be "localhost/api" (the same port as the site) - how would I fetch data inside of my app if the RSC is fetching the data server-side so won't be able to make the request through the proxied API? If that makes sense 😅
      TL;DR - how in my Next app can I fetch data from my proxied backend both in client components (that can only access the API through the proxy) and also in server components (that can only access the API in the internal Docker network, not through the proxy)?

  • @viniciusalvess
    @viniciusalvess 3 หลายเดือนก่อน

    Thank you Andrew, this is a very valuable video!

  • @xe3333
    @xe3333 ปีที่แล้ว +3

    Just in time . Thanks 🙌

  • @vitusyu9583
    @vitusyu9583 2 หลายเดือนก่อน

    But seems you have missed out the part of the DNS resolution required to enable the browser to resolve the URL. or, I have missed something you did mention?
    Thx!

  • @ruslanvoroshchukowlookitlt245
    @ruslanvoroshchukowlookitlt245 ปีที่แล้ว +2

    Hi Andrew, thanks for continuing the sharing a very actual stuff. Could you please guide me on how to set up Traefik correctly to get access to the services from other devices on my local network? The use case is when we need to test the localhost on a native mobile / tablet OS. Thank you!

  • @kinvain
    @kinvain ปีที่แล้ว +2

    Is it important to keep different "ports" section in application service? Or it could be changed to the same ports "80:80" for instance?

  • @mickvanbreukelen7445
    @mickvanbreukelen7445 19 วันที่ผ่านมา

    Do you need to run 'a traefik' per stack?
    What if I want to run multiple services, from multiple stacks. Can that work with only running Traefik once?

  • @alifallahrn
    @alifallahrn ปีที่แล้ว +1

    Thanks! It was very helpful! ❤

  • @cholasimmons
    @cholasimmons 16 วันที่ผ่านมา

    i had this working perfectly til i decided to add 2 domains under the same server, i installed a second Traefik and now both have stopped working,

  • @KaMZaTa
    @KaMZaTa ปีที่แล้ว +1

    Let's say I have 1 stack with 2 containers and another stack with 1 container. How can I isolate the stacks behind Traefik?

  • @huriorko
    @huriorko ปีที่แล้ว +1

    Thanks for doing that!!

  • @pieterrossouw8596
    @pieterrossouw8596 ปีที่แล้ว +2

    Nginx seems to be faster (lower resource utilization or higher traffic before dropping requests). Passing in that docker socket as a volume also greatly increases the severity of exploitation if your version of the container becomes vulnerable. That said, nginx configuration files can be finicky so tomato potato. I'll just use both.

    • @Osys91
      @Osys91 ปีที่แล้ว

      Don't forget that traefik gives the ability to get an SSL cert out of the box when the container goes up.

  • @wushutebessa
    @wushutebessa ปีที่แล้ว +4

    I think I prefer ngnix proxy manager

  • @memack101
    @memack101 ปีที่แล้ว +1

    Thanks.

  • @VitorJustin
    @VitorJustin ปีที่แล้ว +1

    Great video! Tks

  •  ปีที่แล้ว +1

    Awesome!

  • @atiqbaqi
    @atiqbaqi 10 หลายเดือนก่อน

    very helpful video.

  • @davbaster
    @davbaster ปีที่แล้ว

    Thanks for the tutorial

  • @topalek
    @topalek ปีที่แล้ว +1

    awesome

  • @principe.borodin
    @principe.borodin ปีที่แล้ว

    awesome.
    wonderful.

  • @inteliconn995
    @inteliconn995 ปีที่แล้ว

    Thanks!

  • @saragasmichalis2177
    @saragasmichalis2177 ปีที่แล้ว

    Super useful!!

  • @RuelLuna
    @RuelLuna ปีที่แล้ว +1

    how to use this on laravel sail?

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว +3

      You'll have to make changes to the docker-compose.yml file that Sail generates. I'm writing up a blog article about how exactly to do this, so keep an eye out for it!

  • @GerardoBelot
    @GerardoBelot 7 หลายเดือนก่อน

    NO more than a like becouse I can't, thank for the video!!!

  • @chris.dillon
    @chris.dillon 10 หลายเดือนก่อน

    So, instead of like a vite dev server proxy for dev? Hmm.

  • @scwan-ew8uh
    @scwan-ew8uh ปีที่แล้ว

    Show me the javascriptdockerfile

  • @namename8986
    @namename8986 25 วันที่ผ่านมา

    this does not work whatsoever for me

  • @waqaszafar9559
    @waqaszafar9559 ปีที่แล้ว

    good stuff.. when we are gonna see some kubernetes stuff videos on this channel.

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว

      As soon as I take some time to learn more about it, there's a lot to learn!

  • @navanshu
    @navanshu หลายเดือนก่อน

    Different port is same domain not different

  • @derfic
    @derfic ปีที่แล้ว +1

    Hello, nginx proxy is more powerful and useful 🙂 but without beautiful web gui

    • @AinzOoalG0wn
      @AinzOoalG0wn ปีที่แล้ว

      more powerful in what way?

    • @jayp9158
      @jayp9158 ปีที่แล้ว +1

      I just understood "I'm too dumb and lazy to understand this new Technology so I will stick with Nginx"

    • @derfic
      @derfic ปีที่แล้ว

      @@jayp9158 new technologies appear every day, but most of them sucks 🤷🏻‍♂️

    • @joedrezden
      @joedrezden ปีที่แล้ว

      Could nginx proxy ssh connections? I don't.

    • @derfic
      @derfic ปีที่แล้ว

      @@joedrezden lol, we speak about redirects of http traffic