1
0

feat:添加dpanel到列表

This commit is contained in:
okxlin
2024-08-14 01:39:27 +08:00
parent 41dda97a60
commit b747ac4f33
9 changed files with 142 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
APP_NAME="dpanel"
CONTAINER_NAME="dpanel"
DATA_PATH="./data"
DOCKER_SOCK_PATH="/var/run/docker.sock"
PANEL_APP_PORT_HTTP=40283

31
apps/dpanel/lite/data.yml Normal file
View File

@@ -0,0 +1,31 @@
additionalProperties:
formFields:
- default: "40283"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "./data"
edit: true
envKey: DATA_PATH
labelEn: Data Path
labelZh: 数据路径
required: true
type: text
- default: "dpanel"
edit: true
envKey: APP_NAME
labelEn: Application Name
labelZh: 应用名称
required: true
type: text
- default: "/var/run/docker.sock"
edit: true
envKey: DOCKER_SOCK_PATH
labelEn: Docker Socket Path
labelZh: Docker 套接字路径
required: true
type: text

View File

@@ -0,0 +1,20 @@
services:
dpanel:
image: "dpanel/dpanel:lite"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:8080"
volumes:
- ${DOCKER_SOCK_PATH}:/var/run/docker.sock
- ${DATA_PATH}:/dpanel
environment:
- APP_NAME=${APP_NAME}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true