Category : netflix-eureka

I am trying to connect a eureka client in one docker container to a eureka server in another docker container. I am trying to connect via the service name set up in my In my docker docker-compose.yaml services: eureka-server: image: eurekaservice hostname: eureka-server container_name: eurekahost ports: – "8761:8761" In my eureka properties file I have ..

Read more

I’ve seen a few posts about this issue, but all the ones ive seen havent had the second exception that I get. Both Eureka server and my user service are dockerized, but i get this exception every time i run my docker compose com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server user-service | at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112) ..

Read more

This is Dockerfile for Eureka server FROM openjdk:16-jdk-alpine COPY target/EurekaDiscoveryService-0.0.1-SNAPSHOT.jar EurekaDiscoveryServer.jar ENTRYPOINT ["java","-jar","EurekaDiscoveryServer.jar"] This is Dockerfile for Eureka client FROM openjdk:16-jdk-alpine COPY target/ApiGateway-0.0.1-SNAPSHOT.jar ApiGateway.jar ENTRYPOINT ["java","-jar","ApiGateway.jar"] This is application.properties file for Eureka server server.port=8010 spring.application.name=eureka-server eureka.client.registerWithEureka=false eureka.client.fetchRegistry=false eureka.client.serviceUrl.defaultZone = http://localhost:8010/eureka eureka.instance.prefer-ip-address=true This is application.properties for Eureka client server.port=8082 spring.application.name=api-gateway eureka.client.service-url.defaultZone=http://127.0.0.1:8010/eureka I am using -docker run ..

Read more

I have a simple project, a spring cloud gateway, an eureka naming service and a microservice. when I launch the applications on my pc (not in the container) I don’t have problems, but if I launch the same with docker compose, when I execute a rest api I obtain the following error: io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: ..

Read more