From 1611656ad63ac99be7cd0626b614a016a788590e Mon Sep 17 00:00:00 2001 From: ISMAIL MASSERAN Date: Tue, 30 Jun 2026 14:36:04 +0800 Subject: [PATCH] DONE: fix postgres volume mounting --- be/docker/production/docker-compose.production.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/be/docker/production/docker-compose.production.yml b/be/docker/production/docker-compose.production.yml index 08063a2..eff6107 100644 --- a/be/docker/production/docker-compose.production.yml +++ b/be/docker/production/docker-compose.production.yml @@ -66,12 +66,16 @@ services: - POSTGRES_PASSWORD=${DB_PASSWORD} - POSTGRES_DB=${DB_DATABASE} volumes: - - db-data-production:/var/lib/postgres + - db-data-production:/var/lib/postgresql/data - ./be/docker/postgres/conf.d:/etc/postgres/conf.d:ro networks: - mykopkb-production-network healthcheck: - test: ["CMD-SHELL", 'pg_isready -U "$$POSTGRES_USER" || exit 1'] + test: + [ + "CMD-SHELL", + 'pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB" || exit 1', + ] interval: 15s timeout: 10s retries: 5