Mastering Microservices with Java by Sharma Sourabh

Mastering Microservices with Java by Sharma Sourabh

Author:Sharma, Sourabh [Sharma, Sourabh]
Language: eng
Format: azw3, epub
Publisher: Packt Publishing
Published: 2016-06-29T04:00:00+00:00


This does the job and we can not only deploy, but also test our Dockerized service.

Managing Docker containers

Each microservice will have its own Docker container. Therefore, we'll use the Docker Compose Docker container manager to manage our containers.

Docker Compose will help us to specify the number of containers and how these will be executed. We can specify the Docker Image, ports, and each container's links to other Docker containers.

We'll create a file called docker-compose.yml in our root project directory and add all the microservice containers to it. We'll first specify the Eureka Server as follows:

eureka: image: localhost:5000/sourabhh/eureka-server ports: - "8761:8761"



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.