Giter VIP home page Giter VIP logo

Comments (7)

OlgaMaciaszek avatar OlgaMaciaszek commented on September 25, 2024

Hello @GIRISHARAN have you mapped your docker port to local port? Have you properly set eureka.client.serviceUrl.defaultZone?

from spring-cloud-netflix.

GIRISHARAN avatar GIRISHARAN commented on September 25, 2024

Hello @OlgaMaciaszek Yes, I mapped the docker port to my local port. In my git I have properly set eureka.client.serviceUrl.defaultZone. My CloudConfig server is able to get details from my git repo and register itself with Eureka Server but other services which has to get the configuration details from CloudConfig server are not able to fetch details from it.

from spring-cloud-netflix.

OlgaMaciaszek avatar OlgaMaciaszek commented on September 25, 2024

@GIRISHARAN you are getting a ConnectionRefused; it seems something is misconfigured in your docker environment, especially as the apps work normally while on a different enviroment. It's difficult to know the issue without access to the environment.

from spring-cloud-netflix.

ansh-devs avatar ansh-devs commented on September 25, 2024

@GIRISHARAN you can use env variables in your configuration for the services something like this -eureka.client.serviceUrl.defaultZone=http://${EUREKA_HOST:localhost}:8761/eureka
If present in the context the value of EUREKA_HOST will be taken else default will be localhost.
You can pass the hostname for your eureka server you can set custom hostname for your eureka service using
hostname: eureka-server in your docker configuration.

from spring-cloud-netflix.

GIRISHARAN avatar GIRISHARAN commented on September 25, 2024

@ansh-devs the issue I am facing now is my services (dept, user) are not able to connect with Cloud Config Server even though I have mentioned configuration details correctly in my application.properties file of that services

spring.cloud.config.import-check.enabled=false
spring.cloud.config.enabled=true
spring.cloud.config.uri=http://CLOUD-CONFIG-SERVER:8083

CLOUD-CONFIG-SERVER is the name of my Docker Container

from spring-cloud-netflix.

ansh-devs avatar ansh-devs commented on September 25, 2024

@GIRISHARAN try using env variables as i mentioned,
then explicitly assign hostname to your config server container like - hostname: {your_custom_hostname} in your docker compose file...

from spring-cloud-netflix.

spring-cloud-issues avatar spring-cloud-issues commented on September 25, 2024

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

from spring-cloud-netflix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.