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
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
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?
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.
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
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?
Learnt a lot from this. Thank you
Useful content if ur are serious Dev🔥
Thank you 🙏
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
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
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?
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.
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.
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
❤️🔥👍
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?
Environment variable is safe. You can also take a look at Secret Manager if you want to hide the database password inside your org
Thank you!