refactor: 修改 domain-admin 持久化目录

This commit is contained in:
wanghe-fit2cloud
2023-08-02 17:41:12 +08:00
parent dc4a6143eb
commit 542f435342
3 changed files with 3 additions and 15 deletions
-3
View File
@@ -1,3 +0,0 @@
CONTAINER_NAME="domain-admin"
PANEL_APP_PORT_HTTP="40076"
DATA_PATH="./data"
+1 -9
View File
@@ -7,12 +7,4 @@ additionalProperties:
labelZh: 端口 labelZh: 端口
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
+2 -3
View File
@@ -8,12 +8,11 @@ services:
ports: ports:
- "${PANEL_APP_PORT_HTTP}:8000" - "${PANEL_APP_PORT_HTTP}:8000"
volumes: volumes:
- "${DATA_PATH}/database:/app/database" - "./data/database:/app/database"
- "${DATA_PATH}/logs:/app/logs" - "./data/logs:/app/logs"
image: mouday/domain-admin:v1.5.8 image: mouday/domain-admin:v1.5.8
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true