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.

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

  • @TraefikLabs
    @TraefikLabs 3 года назад +3

    Thank you, Li! You are awesome.

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

    Hello Li,
    Tank you very much for such a clear explanation!
    Now to try it myself ☺️
    👍

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

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

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

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

    • @sanduganbullard545
      @sanduganbullard545 Год назад

      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

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

    Thank you Li. Awesome video. Keep going!

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

    How to deploy this scenario (traefik + SSL + multiple apps) inside Docker Swarm cluster?

  • @Marsell88
    @Marsell88 2 года назад +2

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

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

      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.

  • @MohamedAhmed-jl2qp
    @MohamedAhmed-jl2qp 2 года назад

    Amazing video !!

  • @alejandro-acho
    @alejandro-acho 2 года назад

    Great tutorial !!!

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

    Good stuff!

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

    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?

    • @nopalabra
      @nopalabra 4 месяца назад

      I'm wondering the same. Did you find the answer? What does acme.json contain?

  • @AngelGarcia-pb5nf
    @AngelGarcia-pb5nf 3 года назад

    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

  • @abner9138
    @abner9138 Год назад

    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?

    • @abner9138
      @abner9138 Год назад

      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;

  • @rec-trick
    @rec-trick Год назад

    i can upload multi django project ?

  • @StephenYT.
    @StephenYT. 3 года назад

    Hi @Li Yang is possible ask you help paying for configuring traefik? I can't get it to work..

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

    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.

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

    Hi there , I have multiple application build on Laravel . What's the easiest way to run them along with multiple WordPress sites ,Thank you

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

      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.

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

      @@liyangau Yes , Thank you for taking the time to reply , and helping community . I give a sub . Have a Happy New Eve

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

    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?

    • @liyangau
      @liyangau  2 года назад +1

      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/

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

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

    • @liyangau
      @liyangau  2 года назад +1

      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

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

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

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

    this is awesome Li! thank you.
    a question: how do i publish the services in class IP 192.168.1.0/24?

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

    Thanks Li, awesome, my https and dns works perfectly, but now it’s giving 404, do you know what it can be?

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

      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.

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

      @@liyangau
      great, I looked here and adjusted the dynamic ID and it worked thanks = D

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

    I couldnt use the cp command for some reason

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

      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.

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

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

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

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

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

      @@liyangau Managed :) to do it my traefik is running

  • @xdd1955
    @xdd1955 Год назад

    to slow