Comments (2)
@ufoscout yes, trying to follow 12-factor application principles, I have configuration parameters, one per backing service, e.g.:
- postgresql url: postgres://user:password@db:5432/dbname
- redis url: redis://user:password@redis_server:4433/0
- rabbitmq url: amqp://user:password@messaging_server:9847/other/params?q=124
Keeping all configuration parameters for single backing service in one connection string seems practical as it can be handled as one item (one can argue, secrets shall be separated, but I would say the whole connection string could be considered a secret)
And my need is to test (on TCP level) availability of those backing services using just these urls. This I do before starting actual dependent process/application.
To keep implementation simple, I would require that the url must:
- explicitly express the port (so that we can ignore the scheme prefix and relevant default ports for such scheme)
- explicitly express the host (so that we can skip the decision, what is the default host)
from docker-compose-wait.
This could be an interesting proposal. Anyway, I would like to think about it a little more.
What is your use case exactly? Do you have a variable with the complete connection string and you want to reuse it?
from docker-compose-wait.
Related Issues (20)
- Update dependencies HOT 1
- docker-compose-wait work fine but dont start container HOT 6
- Using docker-compose-wait without a Dockerfile? HOT 1
- WAIT_HOSTS without expose ports HOT 1
- Everything's fine, but not loaded HOT 1
- Capability to disable logs HOT 3
- Can you provide a lightweight docker image? HOT 20
- Build break when updating time to version 0.2.0 or superior HOT 2
- Some ENV variable are never read/set HOT 1
- Odd behavior with should_execute_without_wait test with arm64 HOT 3
- What is alternative docker-compose-wait for kubernetes? HOT 2
- Added wait script but not working HOT 2
- WAIT_TIMEOUT doesn't work HOT 1
- being implemented into `docker compose`! HOT 3
- Control the startup of the container HOT 9
- Why can't 127.0.0.1 be monitored, only the IP address can be used? HOT 1
- Feature request: support for aarch64 HOT 1
- docker job should use arch matrix
- [BUG] WAIT_COMMAND does not work correctly HOT 1
- docker-compose-wait doesn't start app 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 docker-compose-wait.