mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-25 05:08:46 +00:00
fix: update mount path for PostgreSQL 18+ to use /var/lib/postgresql/{version}/docker
This commit is contained in:
@@ -19,7 +19,8 @@ export function getMountPath(dockerImage: string): string {
|
|||||||
if (versionMatch?.[1]) {
|
if (versionMatch?.[1]) {
|
||||||
const version = Number.parseInt(versionMatch[1], 10);
|
const version = Number.parseInt(versionMatch[1], 10);
|
||||||
if (version >= 18) {
|
if (version >= 18) {
|
||||||
return `/var/lib/postgresql/${version}/data`;
|
// PostgreSQL 18+ uses /var/lib/postgresql/{version}/docker as the default PGDATA
|
||||||
|
return `/var/lib/postgresql/${version}/docker`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "/var/lib/postgresql/data";
|
return "/var/lib/postgresql/data";
|
||||||
|
|||||||
Reference in New Issue
Block a user