From 9c5622a4a020d0b428b546ca740dc36da3dfaec4 Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Tue, 5 Aug 2025 14:04:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- apps/shopware/6.7.1.2/data.yml | 7 +++++++ apps/shopware/6.7.1.2/docker-compose.yml | 3 +++ 2 files changed, 10 insertions(+) diff --git a/apps/shopware/6.7.1.2/data.yml b/apps/shopware/6.7.1.2/data.yml index 482f7b275..b00b757d0 100644 --- a/apps/shopware/6.7.1.2/data.yml +++ b/apps/shopware/6.7.1.2/data.yml @@ -1,5 +1,12 @@ additionalProperties: formFields: + - default: "/home/dockware" + edit: true + envKey: DOCKWARE_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text - default: 8080 edit: true envKey: PANEL_APP_PORT_HTTP diff --git a/apps/shopware/6.7.1.2/docker-compose.yml b/apps/shopware/6.7.1.2/docker-compose.yml index b7c568f93..77c05beac 100644 --- a/apps/shopware/6.7.1.2/docker-compose.yml +++ b/apps/shopware/6.7.1.2/docker-compose.yml @@ -23,6 +23,9 @@ services: env_file: - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${DOCKWARE_ROOT_PATH}/mysql:/var/lib/mysql + - ${DOCKWARE_ROOT_PATH}/html:/var/www/html environment: - TZ=Asia/Shanghai - XDEBUG_ENABLED=0