Ansible-DockerCompose/Dockerfiles/entrypoint_backup.sh
2024-12-16 05:27:32 +01:00

12 lines
215 B
Bash

#!/bin/sh
# Install PostgreSQL client
apk add --no-cache postgresql-client
# Wait until the PostgreSQL server is ready
until pg_isready -h admin -U admin; do
echo "Waiting for PostgreSQL..."
sleep 2
done