@@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)?
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!
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!
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.
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!
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
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.
thanku so much
This is the easiest to understand guide on setting up Traefik with an app that I've found. Thanks!
I'm glad you liked it! Appreciate the kind words.
Very helpful tutorial for using traefik locally, thanks a lot!
Could you please create a video on setting ssl for traefik.
Thank you for simple and clear video 🎉🎉
Best explanation yet! Thanks so much.
Glad it was helpful!
@@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)?
Thank you Andrew, this is a very valuable video!
Just in time . Thanks 🙌
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!
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!
Is it important to keep different "ports" section in application service? Or it could be changed to the same ports "80:80" for instance?
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?
Thanks! It was very helpful! ❤
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,
Let's say I have 1 stack with 2 containers and another stack with 1 container. How can I isolate the stacks behind Traefik?
Thanks for doing that!!
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.
Don't forget that traefik gives the ability to get an SSL cert out of the box when the container goes up.
I think I prefer ngnix proxy manager
Thanks.
Great video! Tks
Awesome!
very helpful video.
Thanks for the tutorial
awesome
awesome.
wonderful.
Thanks!
Super useful!!
how to use this on laravel sail?
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!
NO more than a like becouse I can't, thank for the video!!!
So, instead of like a vite dev server proxy for dev? Hmm.
Show me the javascriptdockerfile
this does not work whatsoever for me
good stuff.. when we are gonna see some kubernetes stuff videos on this channel.
As soon as I take some time to learn more about it, there's a lot to learn!
Different port is same domain not different
Hello, nginx proxy is more powerful and useful 🙂 but without beautiful web gui
more powerful in what way?
I just understood "I'm too dumb and lazy to understand this new Technology so I will stick with Nginx"
@@jayp9158 new technologies appear every day, but most of them sucks 🤷🏻♂️
Could nginx proxy ssh connections? I don't.
@@joedrezden lol, we speak about redirects of http traffic