Mastering Microservices with Java 9 by Sourabh Sharma

Mastering Microservices with Java 9 by Sourabh Sharma

Author:Sourabh Sharma
Language: eng
Format: epub
Tags: COM060180 - COMPUTERS / Web / Web Services and APIs, COM051280 - COMPUTERS / Programming Languages / Java, COM051000 - COMPUTERS / Programming / General
Publisher: Praful Palekar
Published: 2017-12-06T15:38:03+00:00


Then, perform push and pull commands for the local images:

docker push localhost:5000/sourabhh/restaurant-service:PACKT- SNAPSHOT

docker-compose pull

Finally, execute docker-compose:

docker-compose up -d

Once all of the microservice containers (service and server) are configured, we can start all Docker containers with a single command:

docker-compose up -d

This will start up all Docker containers configured in Docker Composer. The following command will list them:

docker-compose ps Name Command State Ports ------------------------------------------------------------- onlinetablereservation5_eureka_1 /bin/sh -c java -jar ... Up 0.0.0.0:8761->8761/tcp onlinetablereservation5_restaurant-service_1 /bin/sh -c java -jar ... Up 0.0.0.0:8080->8080/tcp

You can also check Docker image logs using the following command:

docker-compose logs [36mrestaurant-service_1 | ←[0m2015-12-23 08:20:46.819 INFO 7 --- [pool-3-thread-1] com.netflix.discovery.DiscoveryClient : DiscoveryClient_RESTAURANT-SERVICE/172.17 0.4:restaurant-service:93d93a7bd1768dcb3d86c858e520d3ce - Re-registering apps/RESTAURANT-SERVICE [36mrestaurant-service_1 | ←[0m2015-12-23 08:20:46.820 INFO 7 --- [pool-3-thread-1] com.netflix.discovery.DiscoveryClient : DiscoveryClient_RESTAURANT-SERVICE/172.17 0.4:restaurant-service:93d93a7bd1768dcb3d86c858e520d3ce: registering service...

[36mrestaurant-service_1 | ←[0m2015-12-23 08:20:46.917 INFO 7 --- [pool-3-thread-1] com.netflix.discovery.DiscoveryClient : DiscoveryClient_RESTAURANT-SERVICE/172.17



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.