Deploying the container artifacts
In the previous section, we explored how we can use Jib
to simplify microservice containerization. In this section, we will dive into how we can make the end-to-end deployment seamless and unified using Docker orchestration with docker-compose
.
Using docker-compose to deploy the pet-clinic services
docker-compose
is a tool available under the Docker ecosystem and is very intuitive in defining and deploying a multi-container application. With a simple YAML-flavored syntax, we can set up all the services and their dependencies and use a single command to deploy the whole application. We will create a docker-compose
file for the pet-clinic application covering all the necessary services/components, including microservices, service discovery, and the Apache Kafka ecosystem.
Firstly, let's define the ancillary services in docker-compose
as follows:
version: '3' services: consul: image: bitnami...