Docker Compose Networking

Docker Compose Networking
0

I’m currently deploying a docker-compose stack of a React Frontend, .NET Core 3.0 API and a Postgres Database on servers that I manage. I’m doing the deployment using GitLab-CI through a self-hosted GitLab instance. I’m struggling to understand how to properly reference each container over the bridge network that I established at creation. For instance, I’m wanting to simply reference the API from the front end through {container-name}:port/API instead of having to use a domain name reference such as api.domainname.com.

I’m open to suggestions and sharing my repository if it helps.

Thank you,

Tyler Williams