February 2019
Intermediate to advanced
446 pages
10h 55m
English
Before executing Docker Compose, you need to build the JAR of all services. You can execute mvn clean package from the code's home directory (home/Chapter5) to do so. Then, you need to build the Docker images using the mvn docker:build command. You need to go to the service's home directory (home/Chapter5/restaurant-service) and then execute it.
You can validate all generated images using the following command if you're pushing to a local Docker repository. Otherwise, this command will display the images once docker-compose is up and running:
docker image ls -a
Use the following command to execute the service containers. You need to run it from the same directory in which the docker-compose file is stored:
$ docker-compose ...
Read now
Unlock full access