GithubHelp home page GithubHelp logo

Comments (2)

vlcinsky avatar vlcinsky commented on May 18, 2024 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.

ufoscout avatar ufoscout commented on May 18, 2024 1

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)

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.