mirror of
https://github.com/esauflores/databases.git
synced 2026-03-08 22:44:00 +00:00
fix: Update Justfile and compose.yml for improved database build and configuration
This commit is contained in:
2
Justfile
2
Justfile
@@ -37,7 +37,7 @@ publish db=VARIANT:
|
||||
|
||||
# Start the database and wait until it's healthy
|
||||
db-up db=VARIANT:
|
||||
docker build {{db}}
|
||||
just build {{db}}
|
||||
docker compose -f {{db}}/compose.yml up -d --wait
|
||||
|
||||
# Stop the database container but preserve data volumes
|
||||
|
||||
@@ -7,8 +7,7 @@ services:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-postgres}
|
||||
ports:
|
||||
- "${POSTGRES_PORT:-5432}:5432"
|
||||
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql
|
||||
healthcheck:
|
||||
|
||||
Reference in New Issue
Block a user