Deploy multiple applications on the same VPS with Docker and Traefik 2
HTML-код
- Опубликовано: 22 авг 2024
- A lot of viewers asked me how to deploy multiple sites or different applications with Traefik. In today's video, I am going to show you how you can deploy these applications with my configurations.
If you have any questions, please leave your comment down below and I will try my best to get back to you.
Thank you, Li! You are awesome.
Hello Li,
Tank you very much for such a clear explanation!
Now to try it myself ☺️
👍
Thanks Darko. Did you leave a comment on my blog post? I have to admit I was motivated by your comment and finally decided to make this video. 😁
@@liyangau haha,
yes, I did, but then I deleted it.
You have already given so much information here and on your blog that I was ashamed to request a video without trying to do it myself ...
Now you have ruined everything for me 😉
What I'm trying to understand now is, for example, if I'm to install Joomla instead of Wordpres, what would I need to change in the config files? I need to figure out how Labels work, among other things...
RTFM comes to mind 😆
out of all the videos I have watch yours the only one that worked for me thanks!! but I have one question can you change the dashboard login info if so plz tell me I tried the Basic Auth but it did not work
Thank you Li. Awesome video. Keep going!
How to deploy this scenario (traefik + SSL + multiple apps) inside Docker Swarm cluster?
Hi Li, im loving your content, helps me learn quite a lot!
Could you briefly explain what would the config and dynamic file look like if i am to use a CDN like CloudFlare? Suppose i would ignore the tls settings..?
Hi Marko. From my limited experience with CloudFlare CDN (free version), I always use Full(Strict) mode which use end to end tls encryption. This requires trusted certificates installed on original server. I don't need to change anything on my side, Traefik will renew certificates automatically.
Amazing video !!
Great tutorial !!!
Good stuff!
Great tutorial, thank you very much.
But I have questions:
Why did you run: `sudo cp ../acme.json` (around 1:57: ruclips.net/video/mSeMnKX6DFw/видео.html)
So we should prepare our own `acme.json` file by our self?
I'm wondering the same. Did you find the answer? What does acme.json contain?
It doesn't work me. I cannot even access the dashboard, firefox just says: "We can’t connect to the server at dash.mywebsitedomain.com"
I copied all code/commands from your blog into my digital ocean droplet. I even created a brand new droplet with no custom packages installed. It's just a clean install of ubuntu 20.04 and it still did not work
Hello!
Help me please!
I am using your traefik 2.4 version of your blog.. I'm trying to use an application of mine in docker that in nginx I use these settings here... can you tell me how I can use in traefik? version 2.4 is the same best?
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
i can upload multi django project ?
Hi @Li Yang is possible ask you help paying for configuring traefik? I can't get it to work..
Hi, when I launch the docker-compose it sends me this error in the console:
"time =" 2021-11-10T19: 24: 24Z "level = error msg =" middleware \ "user-auth @ file \" does not exist "routerName = bringfik-secure @ docker entryPointName = websecure
"Anyone have a clue on how to fix it? I'm doing something. Thanks.
Hi there , I have multiple application build on Laravel . What's the easiest way to run them along with multiple WordPress sites ,Thank you
You can use a Dockerfile to build your own image (based on php image) for your Laraval applications. (You should find a lot of article with keyword Dockerfile Laravel) Then it is the same method to put Traefik in front of your laravel container.
@@liyangau Yes , Thank you for taking the time to reply , and helping community . I give a sub . Have a Happy New Eve
If I setup another wp using your setup, does it install another mariadb container in the same server? I understand a single traefik container will help serve both wp websites. And can you share your traefik config on a webpage?
Hi
Does it install another mariadb container in the same server?
Yes. Personally I would not mix db for different sites.
Can you share your traefik config on a webpage?
My traefik config is on my blog tech.aufomm.com/traefik/
@@liyangau I cannot get it to work I got a `network proxy declared as external, but could not be found` when i did `docker compose up -d`
Yes, you need to create network first. This is external
Please try docker network create proxy first and try the docker compose up command again
@@liyangau Thank you, your video helped me to finally figure out how to make multiple Django websites on the same server using traefik as well.
this is awesome Li! thank you.
a question: how do i publish the services in class IP 192.168.1.0/24?
Thanks Li, awesome, my https and dns works perfectly, but now it’s giving 404, do you know what it can be?
Hi Victor, I am not sure what service is giving you 404. 404 normally means Traefik has no idea what service the route should be linked to. If you have access to Traefik Dashboard, please go and check what service is linked to the route. If you are getting 404 for Traefik dashboard, please check your setting to be the same as mine - On static configuration there is api: true to enable dashboard and then on dynamic configuration to use it as api@internal.
@@liyangau
great, I looked here and adjusted the dynamic ID and it worked thanks = D
I couldnt use the cp command for some reason
I am not sure what cp command you are referring to. If you couldn't copy the code from my website, check your browser if javascript is disabled.
@@liyangau Oh hii thx for the reply I meant in the cli around 1:54 in the video :P I use debian in my linux but it didnt recognize the command.
@@Cyperlina You should have `cp` command with debian. In fact, I was using debian in the video. cp command is used to copy content on linux system. en.wikipedia.org/wiki/Cp_(Unix)
@@liyangau Managed :) to do it my traefik is running
to slow