title: Google Cloud Run Container Networking
body: <p>I have a system of apps/services in docker containers that, when I bring them up using docker-compose, talk to each other using a bridge network.</p>
  
  <p>Workers start up and register themselves with a manager. The manager assigns the workers work to do. In order to do this, the workers need to know where the manager is, and the manager needs to know where the workers are.</p>
  
  <p>I want to deploy them all to Google Cloud Run. </p>
  
  <p>At the moment, in docker via docker-compose, they talk to each other using their container names. For example the worker might call: <code>http://manager:5000/register?name=worker1&amp;port=5000</code> to register on startup, and then the manager can call <code>http://worker1:5000</code> to send work. All thanks to the fact that they're connected to the same bridge network.</p>
  
  <p>How does this work with Google Cloud Run? As far as I can see, when you create a service linked with a container, you get a permanent URL to communicate with your app once it has started. The app in the container doesn't know what the URL is.</p>
  
  <p>Can I use the service names to communicate with each other in the same way as a docker bridge network?</p>