best way to wait for postgres to start in docker-compose

This page summarizes the projects mentioned and recommended in the original post on /r/django

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • wait-for-it

    Pure bash script to test and wait on the availability of a TCP host and port

  • See https://github.com/vishnubob/wait-for-it

  • docker_django_postgres_template

    A basic template for Django. Includes several custom user models to choose from.

  • entrypoint.sh

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • compose-spec

    The Compose specification

  • wait-for-it.sh is so last year, use a health check, see https://github.com/compose-spec/compose-spec/blob/master/spec.md and ctrl+f for "health" then read all those bits.

  • cookiecutter-django

    Discontinued Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly. [Moved to: https://github.com/cookiecutter/cookiecutter-django] (by pydanny)

  • Hi, I'm using cookiecutter-django, checkout the files production.yml and compose/production/django/entrypoint to see how implement what you are looking for.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts