As the Github repo for Netflix's Eureka registry says itself: “Eureka is a REST (Representational State Transfer) based service that is primarily used in the AWS cloud for locating services for the purpose of load balancing and failover of middle-tier servers.” — Netflix
Using of this image is very simple. You just have to pull this image and run by publishing the desired port.
docker run -p 8761:8761 navneetlalg/eureka:latest
OR you can also use docker-compose.yml
to create a service. This is the prefered way since you will require to connect other services to Eureka
version: '3.1'
services:
registry:
image: navneetlalg/eureka:8-jre-alpine
ports:
- 8761:8761
This API is based on spring-boot, In case you want to make changes to any default configuration like ports, etc can be done by setting environment variables SPRING_APPLICATION_JSON
.
You can find the more detailed description related to spring-boot configuration over here.