Comments (7)
Hello @GIRISHARAN have you mapped your docker port to local port? Have you properly set eureka.client.serviceUrl.defaultZone
?
from spring-cloud-netflix.
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.
@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.
@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.
@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.
@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.
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)
- Jersey3DiscoveryClientOptionalArgs may be configured with TlsProperties in EurekaServerAutoConfiguration.java HOT 5
- UnresolvedAddressException when using webClient.get() to get from a discovery eureka client HOT 4
- When shutting down after 4.1.1, an exception occurs while unregistering HOT 6
- No such host is known (swagger-service) HOT 5
- xstream, woodstox and guava dependencies vulnerabilities HOT 2
- Eureka Service Discovery, after a network failure, updates the client status to DOWN, but when the HEARTBEAT is done from the client it does not change status to UP HOT 2
- 400 error when Eureka discovery client attempts to register Spring Boot 2.7.5 service with service registry HOT 2
- About RefreshScopeRefreshedEvent
- When @ RequestPart and @ RequestParam are used together, the @ RequestParam parameter will be duplicated HOT 3
- Upgrade Eureka to 2.0.3 HOT 1
- Client observations creating too many uri tag values HOT 11
- Broken documentation links HOT 6
- Incorrect Default Values in Eureka Appendix Documentation HOT 1
- support dual stack address registry and discovery in Spring Cloud Netflix Eureka
- When the Client does not have an application.properties file, Server Eureka does not recognize the default name HOT 3
- Eureka server application fails to start with NoClassDefFoundError: com.google.common.cache.CacheBuilder exception HOT 3
- <instanceId>HOST:APP:0</instanceId> HOT 2
- Maybe it's time to update the documentation? HOT 1
- spring boot 3.3.2 missing servo metrics with jmx_prometheus_javaagent HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-cloud-netflix.