From 13099e0f118b727a1472282c6419ef9b1842c191 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 5 Sep 2023 19:46:47 +0200 Subject: [PATCH] fix(docker): make Docker entrypoint port configurable via $MOBILIZON_DATABASE_PORT See https://framagit.org/framasoft/mobilizon/-/issues/1321 Signed-off-by: Thomas Citharel --- docker/production/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/production/docker-entrypoint.sh b/docker/production/docker-entrypoint.sh index 1d7a7a7f3..3bc6868aa 100755 --- a/docker/production/docker-entrypoint.sh +++ b/docker/production/docker-entrypoint.sh @@ -3,7 +3,7 @@ set -e echo "-- Waiting for database..." -while ! pg_isready -U ${MOBILIZON_DATABASE_USERNAME} -d postgres://${MOBILIZON_DATABASE_HOST}:5432/${MOBILIZON_DATABASE_DBNAME} -t 1; do +while ! pg_isready -U ${MOBILIZON_DATABASE_USERNAME} -d postgres://${MOBILIZON_DATABASE_HOST}:${MOBILIZON_DATABASE_PORT:-5432}/${MOBILIZON_DATABASE_DBNAME} -t 1; do sleep 1s done