Skip to content

Request: adding Docker health check to postgres/README.md #2391

@jamesbraza

Description

@jamesbraza

It would be good to add a healthcheck to the postgres/README.md.

There are some possible starting points posed here: https://stackoverflow.com/questions/65115627/safe-ways-to-specify-postgres-parameters-for-healthchecks-in-docker-compose


Aside: running the below:

---
version: "3.8"
services:
    postgres:
        image: postgres:latest
        environment:
            POSTGRES_USER: user
            POSTGRES_PASSWORD: pass
            POSTGRES_DB: db
docker compose up postgres --detach 
docker compose run postgres pg_isready --username user --dbname db

I can never get pg_isready to output something besides /var/run/postgresql:5432 - no response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions