From a8c6c88f6dbfd26a91ed9eafec6188d0de3051c4 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 13 Jun 2026 21:22:55 +0300 Subject: [PATCH] fix postgres readiness check --- flake.nix | 1 - process-compose.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 134e41f..2eae39d 100644 --- a/flake.nix +++ b/flake.nix @@ -30,7 +30,6 @@ export PGDATA="$REPO_ROOT/.postgres" export PGHOST="$PGDATA" export PGUSER="postgres" - export PGDATABASE="rabbigerzi" if [ ! -d "$PGDATA" ]; then echo "[pg] initializing cluster at $PGDATA" diff --git a/process-compose.yml b/process-compose.yml index a7008c7..ec7c7dc 100644 --- a/process-compose.yml +++ b/process-compose.yml @@ -7,7 +7,7 @@ processes: signal: 2 readiness_probe: exec: - command: pg_isready -h "$PGDATA" + command: pg_isready -h "$PGDATA" -d postgres -U postgres initial_delay_seconds: 1 period_seconds: 2