教你用10分钟使用Docker和Traefik 2在个人的服务器上轻松部署WordPress

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • 我在18年的时候做过一个用建议部署WordPress的视频。随着科技的进步现在看看当时的视频可能有些内容需要一些更新。本视频旨在教大家如何轻松的在个人的服务器十分钟之内搭建好WordPress网站并自动获取SSL证书。如果有什么不明白的地方,欢迎留言。
    本文对应的博客地址是
    hexo.aufomm.com

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

  • @euhosc
    @euhosc 5 месяцев назад

    謝謝

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

    That would be super great if they are in English bro but if you can't with subtitles, that's enough, I was also reviewing your videos and your settings and they helped me make my docker-compose lighter, that helped me a lot, now I'm struggling to generate a dynamic file with TCP instructions to be able to make my bringfik to become a reverse proxy, I am also trying to launch a postgres in docker and that trefik is the one that redirects the bringfik to the tcp port, then two different points using bringfik and I am exploding my head.

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

    Thank you for your contribution, it costs a lot to get info from traefik 2.x, two things it is possible that you upload subtitles in English, and that you do some examples with TCP one with container and another tcp on external server, thanks in advance

  • @je-pense
    @je-pense 4 года назад

    Thank you so much, is that possible you can share how to setup mutiple wordpress sites by this way? I think mutiple sites are more pritical for the most.

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

      Hi Winwin, deploying additional WP site (different domain) on the same VPS is the same as shown on the video.
      1. Make sure DNS A record is pointing to the VPS
      2. Create new folder for example ~/newsite
      3. Copy the same WordPress docker-compose.yml file from my blog post and put it under ~/newsite
      4. Change hostname, service name, DB name on the new yml file.
      5. docker-compose up -d
      I just did a test and it was working as expected. Let me know if you can get it working.

    • @je-pense
      @je-pense 4 года назад

      Li Yang Thank you so much, I will try it definitely, good work!

    • @je-pense
      @je-pense 4 года назад

      Hi, on the WordPress docker-compose.ylm, this sentence " volumes:
      - ./wp-data:/var/www/html/wp-content", how to setting the second website on this part, please, thanks.

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

      @@je-pense You don't need to change the volume if you don't want to. Your new site will be in a new folder anyway. So for your first website, all content will be in ~/firstsite/wp-data and for your second site ~/second/wp-data etc.

    • @je-pense
      @je-pense 4 года назад

      @@liyangau Thank you Yang for the kind responding, what I am concerning is the "/var/www/html/wp-content" part, isn't the two sites' content will behold there? If it is, how to deal with it? Thanks again!