1
0

feat:重构mdserver-web

This commit is contained in:
okxlin
2024-06-30 22:55:05 +08:00
parent 9f8907fa91
commit a54f5ddb4d
8 changed files with 167 additions and 87 deletions

View File

@@ -0,0 +1,8 @@
CLOSE_ADMIN_PATH="true"
CONTAINER_NAME="mdserver-web"
HTTPS_PORT=10443
HTTP_PORT=10080
PANEL_APP_PORT_HTTP=7200
PASSWORD="password"
PHPMYAYMIN_PORT=10888
USERNAME="ddsrem"

View File

@@ -0,0 +1,64 @@
additionalProperties:
formFields:
- default: 7200
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Panel Port
labelZh: 面板端口
required: true
rule: paramPort
type: number
- default: 10080
edit: true
envKey: HTTP_PORT
labelEn: HTTP Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
- default: 10443
edit: true
envKey: HTTPS_PORT
labelEn: HTTPS Port
labelZh: HTTPS 端口
required: true
rule: paramPort
type: number
- default: 10888
edit: true
envKey: PHPMYAYMIN_PORT
labelEn: phpMyAdmin Port
labelZh: phpMyAdmin 端口
required: true
rule: paramPort
type: number
- default: "true"
edit: true
envKey: CLOSE_ADMIN_PATH
labelEn: Close Admin Path
labelZh: 关闭管理路径
required: true
type: select
values:
- label: "true"
value: "true"
- label: "false"
value: "false"
- default: "ddsrem"
edit: true
envKey: USERNAME
labelEn: Username
labelZh: 用户名
random: true
required: true
type: text
- default: "password"
edit: true
envKey: PASSWORD
labelEn: Password
labelZh: 密码
random: true
required: true
rule: paramComplexity
type: password

View File

@@ -0,0 +1,29 @@
services:
mdserver-web:
image: "ddsderek/mdserver-web:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}"
- "${HTTP_PORT}:80"
- "${HTTPS_PORT}:443"
- "${PHPMYAYMIN_PORT}:888"
volumes:
- mdserver-web-data:/www
environment:
- CLOSE_ADMIN_PATH=${CLOSE_ADMIN_PATH}
- USERNAME=${USERNAME}
- PASSWORD=${PASSWORD}
- WEB_PORT=${PANEL_APP_PORT_HTTP}
labels:
createdBy: "Apps"
volumes:
mdserver-web-data:
name: mdserver-web-data
networks:
1panel-network:
external: true