Spring Boot Microservice - Simple Service Example
- Apache Maven (http://maven.apache.org).
- Docker (http://docker.com).
- Git Client (http://git-scm.com).
To build docker image, open a command-line window change to the directory, and run the following maven command. This command will execute the Spotify docker plugin defined in the pom.xml file.
mvn clean package docker:build
If everything builds successfully you should see a message indicating that the build was successful.
To start the docker image, Issue the following docker-compose command:
docker-compose -f docker/common/docker-compose.yml up