Compox.Upchecks.Postgrex (compox v0.1.0-rc2)

Module that provides the upcheck implementation to ensure a Postgres connection can be used.

This module tries to connect to a Postgres database, and it will succeed if the connection can be established and a credentials error is returned.

Configuration

Elixir.Compox.Upchecks.Postgrex supports the following args:

  • hostname: The hostname to check the connection. Defaults to localhost.
config :compox,
  container_upchecks: [
    "postgres": {Compox.Upchecks.Postgrex, []}
  ]