Orchestrating with docker-compose

We have been running the servers for Librarian and Concierge on our system's localhost at hardcoded network port values. We haven't faced any issues with it so far. However, when we consider that we will be running three instances of Librarian, requiring to connect all of them to Concierge and be able to easily start and monitor the servers, we realize that there are a lot of moving parts. This can lead to unnecessary errors while operating the system. In order to make our life easy, we can rely on docker-compose, which will take care of all this complexity for us. All we have to do is define a configuration YAML file called docker-compose.yaml that will provide the following information:

  • Identify the services we want to run together
  • The location or name of the respective Dockerfile or Docker image for every service defined in the YAML file so that we can build Docker images for all of them and run them as containers
  • Ports to expose for each of the running containers
  • Any further environment variables we might want to inject into our server instances
  • Ensure that Concierge's container has access to all other running containers
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.189.186