Skip to content

Commit 19c009f

Browse files
authored
fix(db): Correct local db script volume mount for modern postgres images (minimal fix) (#460)
The scripts/start-local-db.sh script was failing for modern PostgreSQL Docker images (version 18+) due to an incorrect volume mount point. This commit provides a minimal fix by changing the volume mount from /var/lib/postgresql/data to /var/lib/postgresql, which is the correct path for modern postgres images.
1 parent 3b83a5f commit 19c009f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/start-local-db.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ else
66
echo "postgres is not running, starting it"
77
docker rm postgres --force
88
mkdir -p postgres-data
9-
docker run --name spliit-db -d -p 5432:5432 -e POSTGRES_PASSWORD=1234 -v "/$(pwd)/postgres-data:/var/lib/postgresql/data" postgres
9+
docker run --name spliit-db -d -p 5432:5432 -e POSTGRES_PASSWORD=1234 -v "/$(pwd)/postgres-data:/var/lib/postgresql" postgres
1010
sleep 5 # Wait for postgres to start
11-
fi
11+
fi

0 commit comments

Comments
 (0)