From 2677e40f429c7e7eeda4726754114b6eff002036 Mon Sep 17 00:00:00 2001 From: Cesar Flores Date: Sat, 7 Mar 2026 09:28:48 +0700 Subject: [PATCH] fix: Update postgres service configuration in compose.yml for clarity and correctness --- postgres/compose.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/postgres/compose.yml b/postgres/compose.yml index 4a45665..bb7f5de 100644 --- a/postgres/compose.yml +++ b/postgres/compose.yml @@ -1,8 +1,7 @@ services: postgres: - build: - context: . - dockerfile: Dockerfile + # run `just build postgres` first + build: database-postgres:latest restart: unless-stopped environment: POSTGRES_USER: ${POSTGRES_USER:-postgres} @@ -11,7 +10,7 @@ services: ports: - "${POSTGRES_PORT:-5432}:5432" volumes: - - postgres_data:/var/lib/postgresql/data + - postgres_data:/var/lib/postgresql healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"] interval: 10s