All Projects → mxssl → wait-for-pg

mxssl / wait-for-pg

Licence: Apache-2.0 license
Check if PostgreSQL database is ready

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to wait-for-pg

cloud-tileserver
Serve mapbox vectortiles via AWS stack
Stars: ✭ 48 (+118.18%)
Mutual labels:  postgres
postgresql-resilient
Automatic re-connection support for PostgreSQL.
Stars: ✭ 16 (-27.27%)
Mutual labels:  postgres
docker-compose-moodle
This project quickly builds a local workspace for Moodle (Apache2, PHP-FPM with XDEBUG y Postgres) using containers for each of its main components. The local workspace is built and managed by Docker Compose
Stars: ✭ 33 (+50%)
Mutual labels:  postgres
mitoc-trips
The MIT Outing Club's trip management system
Stars: ✭ 30 (+36.36%)
Mutual labels:  postgres
shuttletracker
🚐 Shuttle tracking for RPI.
Stars: ✭ 44 (+100%)
Mutual labels:  postgres
create-fastify-app
An utility that help you to generate or add plugin to your Fastify project
Stars: ✭ 53 (+140.91%)
Mutual labels:  postgres
postgres-deno
A PostgreSQL extension for Deno: run Typescript in PostgreSQL functions and triggers.
Stars: ✭ 87 (+295.45%)
Mutual labels:  postgres
docker-postgresql-pro-1c
Dockerfile для сборки PostgreSQL под 1С:Предприятие 8
Stars: ✭ 27 (+22.73%)
Mutual labels:  postgres
go-pg-crud
Simple Postgres CRUD written in Golang
Stars: ✭ 44 (+100%)
Mutual labels:  postgres
general-angular
Realtime Angular Admin/CRUD Front End App
Stars: ✭ 24 (+9.09%)
Mutual labels:  postgres
ChefAPI
API using FastAPI and PostgreSQL for sharing or keeping track of awesome food recipes Based on Oauth2 and JWT 💎
Stars: ✭ 16 (-27.27%)
Mutual labels:  postgres
realtime-flask-experiment
Experimenting with PostgreSQL's Listen/Notify and Flask-SocketIO
Stars: ✭ 22 (+0%)
Mutual labels:  postgres
erdiagram
Entity-Relationship diagram code generator library
Stars: ✭ 28 (+27.27%)
Mutual labels:  postgres
connect4
Connect 4️⃣Game
Stars: ✭ 1 (-95.45%)
Mutual labels:  postgres
dlock
Interval Lock
Stars: ✭ 19 (-13.64%)
Mutual labels:  postgres
lego
A lightweight SQL (string) builder using ES6 template strings. Lego embraces SQL instead of adding yet another abstraction layer.
Stars: ✭ 54 (+145.45%)
Mutual labels:  postgres
nim-gatabase
Connection-Pooling Compile-Time ORM for Nim
Stars: ✭ 103 (+368.18%)
Mutual labels:  postgres
pg migrate
Manage postgres schema, triggers, procedures, and views
Stars: ✭ 25 (+13.64%)
Mutual labels:  postgres
terraform-aws-druid
Terraform module to deploy Apache Druid in Kubernetes
Stars: ✭ 16 (-27.27%)
Mutual labels:  postgres
api.pokedextracker.com
API for pokedextracker.com
Stars: ✭ 38 (+72.73%)
Mutual labels:  postgres

wait-for-pg

Simple app that checks if PostgreSQL database is ready or not.

Install and usage

Option 1: use binary

wget https://github.com/mxssl/wait-for-pg/releases/download/v1.0.0/wait-for-pg-linux-amd64.tar.gz
tar xvzf wait-for-pg-linux-amd64.tar.gz
cp wait-for-pg /usr/local/bin/wait-for-pg
chmod +x /usr/local/bin/wait-for-pg

wait-for-pg check \
  --host postgres.domain.com \
  --port 5432 \
  --user pguser \
  --password pgpass \
  --dbname dbname \
  --sslmode disable \
  --retry 10 \
  --sleep 2

Option 2: use docker container

docker container \
  run \
  --rm \
  mxssl/wait-for-pg:v1.0.0 \
  wait-for-pg check \
    --host postgres.domain.com \
    --port 5432 \
    --user pguser \
    --password pgpass \
    --dbname dbname \
    --sslmode disable \
    --retry 10 \
    --sleep 2
  • If PG is ready then app returns exit code 0
  • If PG isn't ready then app returns exit code 1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].