feat:优化sun-panel的适配
This commit is contained in:
3
apps/sun-panel/latest/.env.sample
Normal file
3
apps/sun-panel/latest/.env.sample
Normal file
@@ -0,0 +1,3 @@
|
||||
CONTAINER_NAME="sun-panel"
|
||||
PANEL_APP_PORT_HTTP="40198"
|
||||
DATA_PATH="./data"
|
||||
@@ -1,6 +1,6 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 3002
|
||||
- default: 40198
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
@@ -8,3 +8,10 @@ additionalProperties:
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
version: '3'
|
||||
services:
|
||||
halo:
|
||||
image: hslr/sun-panel
|
||||
sun-panel:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
volumes:
|
||||
- ./data/conf:/app/conf
|
||||
- ./data/uploads:/app/uploads
|
||||
- ./data/database:/app/app/database
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:3002
|
||||
labels:
|
||||
- "${PANEL_APP_PORT_HTTP}:3002"
|
||||
volumes:
|
||||
- ${DATA_PATH}/conf:/app/conf
|
||||
- ${DATA_PATH}/uploads:/app/uploads
|
||||
- ${DATA_PATH}/database:/app/database
|
||||
image: hslr/sun-panel:latest
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
networks:
|
||||
1panel-network:
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user