Deploy Dockerized Node/Express to Compute Engine (with Load Balancer and SSL termination)

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

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

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

    Learnt a lot from this. Thank you

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

    Useful content if ur are serious Dev🔥

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

    Hi, I'm a BE newbie, this video is such help to me, let me have a direction for how to configurations Google services
    But seem if I don't have a domain, it wouldn't be able to access from the public IP of the VM, I follow all of the steps with the video. But i just got stuck with domain and seem it's failed all the time when i try to run the docker with ssh sheel

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

      If you just want to access by IP, then skip the Load Balancer and assign the public IP to the VM. Also make sure you set that PORT environment variable to 80. Otherwise the server will run on port 3000 and you will not be able to access it because port 3000 is blocked by the firewall

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

    Hi, an excellent tutorial on the topic.
    I have repeated it and it works fine. The page is accessible via domain name with SSL. But what I observed is - the page is also accessible via IP address of instance group. Is this a case of bypass of load balancer. If so, what are implications and actually why is it so?

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

      Interesting. Yes, you are right. This is because the global load balancer in Google Cloud works with external IP addresses. Ideally these ports should not be exposed but I don't think there's a security risk. It should be possible to add a firewall rule that blocks port 80 access on these public IPs. However, you need to make sure the Load Balancer can still access them. So maybe two rules.

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

    How can we scale the containers and set up an auto CI/CD GitHub push trigger? I thought we were going to use Docker Swarm.

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

      Instance groups can be auto scaled. Why would you think it's using Docker swarm? There's a diagram at the beginning of the video, there's no mention of docker swarm

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

    ❤️🔥👍

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

    Hi!
    If we put database connection string (we know that it contains password to access database) into container environment variable as key-value pair, will it pose security breach? If so, what is the best way to pass database connection string on code while deploying docker image?

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

      Environment variable is safe. You can also take a look at Secret Manager if you want to hide the database password inside your org

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

      Thank you!