Running an application typically involves multiple processes whether that’s just an application server and database or multiple service implementations in a microservice architecture. Docker Compose provides a quick and easy mechanism to build, deploy, and run your application, whether locally on your system for development purposes or on a platform such as Docker Datacenter for production.
For the purposes of this example we have taken Docker’s example voting application and modified it so that the voting and results web applications are Java applications running on WebSphere Liberty. You can clone the updated application from GitHub and, assuming that you have Docker and Docker Compose installed, run it using the following simple commands:
git clone https://github.com/kavisuresh/example-voting-app.git
The following video gives an introduction to the example voting application and how it can be run using Docker Compose:
The following video talks about Docker Datacenter configuration and how the application can be run in Docker Datacenter using Docker Compose: