Skip to content

Commit e7c5989

Browse files
committed
fix: Wizard missing pgdata mapping
1 parent 7eb3ac2 commit e7c5989

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/data/composeTemplates.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ const generateEditorEnv = (config, deploymentType) => {
140140
const generateVolumes = (config) => {
141141
const volumes = [];
142142
volumes.push(` - ${config.CONFIG_PATH || './data'}:/var/www/config`);
143+
if (config.DB_CONNECTION === 'pgsql') {
144+
volumes.push(` - ${config.PG_DATA_PATH || './pgdata'}:/var/lib/postgresql/data`);
145+
}
143146
if (config.STRM_PATH) {
144147
volumes.push(` - ${config.STRM_PATH}:/strm`);
145148
}

src/data/composeWizardConfig.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,16 @@ export const WIZARD_SECTIONS = [
590590
placeholder: '/path/to/data',
591591
deploymentTypes: ['modular', 'aio', 'vpn', 'external-nginx', 'external-caddy'],
592592
},
593+
{
594+
name: 'PG_DATA_PATH',
595+
label: 'PostgreSQL Data Volume',
596+
description: 'Host path for PostgreSQL data persistence',
597+
type: FIELD_TYPES.TEXT,
598+
default: './pgdata',
599+
placeholder: '/path/to/pgdata',
600+
showWhen: { field: 'DB_CONNECTION', value: 'pgsql' },
601+
deploymentTypes: ['modular', 'aio', 'vpn', 'external-nginx', 'external-caddy'],
602+
},
593603
{
594604
name: 'STRM_PATH',
595605
label: 'STRM Volume',

0 commit comments

Comments
 (0)