Hi,
I am working on a project which consists of 2 docker containers managed by a docker-compose.yaml file, where container "one" is both hosting an external API and also holding the source code, and where "two" is only hosting an internal API which container "one" can receive information from. Everything runs as expected in the Cloud via a Compute Engine (VM). The idea is that a verified user should be able to access the hosted API to be able to send data to this VM for processing. I would like some help on how to host this API in the cloud, so only verified users can access it, and not do any port-forwarding or similar.
Please ask questions if I need to clarify anything.
Thanks in advance 🙂
To securely host your API in the cloud and ensure that only verified users can access it, you can follow these steps:
Use a Cloud Provider:
Set Up a Reverse Proxy:
Use OAuth2 Proxy for Authentication:
Deploy with Docker Compose:
Let me know if of you need more info