Comments (4)
Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.
from spring-cloud-config.
The problem was that they were not on the same network. Then after this, I had another problem of the app starting before the cloud config server and requesting the data from it, from an endpoint, but as it was not fully started, it failed. I fixed it by adding:
deploy:
restart_policy:
condition: on-failure
Now it fails repeatedly until the server starts and then it is able to connect. I have tried using healthcheck and conditionals, but the cloud server config image does not allow execution from terminal, I tried with wait-for-it.sh, with which I had some other problems. So, in the end I solved it with this. If you have a better solution, please let me know.
So now my app looks something like:
my-app:
image: my-app-image
deploy:
mode: replicated
restart_policy:
condition: on-failure
depends_on:
- config
networks:
- vd-network
ports:
- "9000:9000"
from spring-cloud-config.
Thanks for the update!
from spring-cloud-config.
No, problem. The less people have to do this, the better.
from spring-cloud-config.
Related Issues (20)
- Pass JWT token to spring cloud config server HOT 2
- Spring Boot Cloud Config Unable to Decrypt Password even symetric key is being provided via Yml Config
- [Refactoring] Introduce RequestContext to easily pass new parameters to downstream methods
- Allow Users To Customize HttpClient HOT 1
- [Issue] Spring Cloud Starter Config(spring cloud config client) prevents loading of vault secrets HOT 3
- Config file same key overriding order/precedence HOT 3
- How can I safeguard my GitHub password in the workflow and deploy it using Docker? HOT 2
- Wrong ordering of property sources in config client when using spring.config.import HOT 4
- Add support for MongoDB environment repository in Spring Cloud Config
- wrong property value HOT 2
- Problem of overrides ordering with spring.config.import
- Retrieving properties in YAML or JSON format returns manipulated, incorrect property keys HOT 1
- Retrieving formatted/resolved properties returns manipulated value
- RestClient support for PropertySourceLocator
- Problems to setup embedded Spring Config Server
- Support for Spring Boot 3.3.0 HOT 6
- PropertySources not loading, [] is returned HOT 3
- After updating from 4.0.x to 4.1.2 application asks wrong Spring Profile HOT 1
- cannot open git-upload-pack HOT 1
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-config.