Skip to content

Instantly share code, notes, and snippets.

@jonas-merkle
jonas-merkle / docker-compose.yml
Last active September 4, 2025 00:36
Docker Compose configuration for setting up a PostgreSQL container with a health check
# Docker Compose configuration for setting up a PostgreSQL container with a health check
#
# This configuration pulls the latest PostgreSQL image and sets up a health check
# to monitor if the PostgreSQL service is ready to accept connections. The health check
# uses the 'pg_isready' command to check database readiness.
#
# Environment variables are used to configure PostgreSQL credentials and database settings.
services:
postgres: