fix: Update Justfile and compose.yml for improved database build and configuration

This commit is contained in:
2026-03-07 09:37:24 +07:00
parent 49f5c7af70
commit f2d3e7551e
2 changed files with 2 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ publish db=VARIANT:
# Start the database and wait until it's healthy # Start the database and wait until it's healthy
db-up db=VARIANT: db-up db=VARIANT:
docker build {{db}} just build {{db}}
docker compose -f {{db}}/compose.yml up -d --wait docker compose -f {{db}}/compose.yml up -d --wait
# Stop the database container but preserve data volumes # Stop the database container but preserve data volumes

View File

@@ -7,8 +7,7 @@ services:
POSTGRES_USER: ${POSTGRES_USER:-postgres} POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres} POSTGRES_DB: ${POSTGRES_DB:-postgres}
ports: POSTGRES_PORT: ${POSTGRES_PORT:-5432}
- "${POSTGRES_PORT:-5432}:5432"
volumes: volumes:
- postgres_data:/var/lib/postgresql - postgres_data:/var/lib/postgresql
healthcheck: healthcheck: