mirror of
https://github.com/esauflores/databases.git
synced 2026-03-09 06:30:34 +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
|
# 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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user