I have my database in VPC and I want to deploy an APP inside the VPC via docker image which can connect to the database in the VPC network, but it should be able to listen to public traffic on http port 80. Can someone please guide on how to do it with digital ocean. I am pretty new to cloud deployments. Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
I think that, in your case, one approach you could use the --network host flag so that your Docker container networking uses the host network, as per the documentation here:
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.