diff --git a/apps/dpanel-lite/1.2.0/data.yml b/apps/dpanel-lite/1.2.0/data.yml new file mode 100644 index 00000000..5950bd50 --- /dev/null +++ b/apps/dpanel-lite/1.2.0/data.yml @@ -0,0 +1,31 @@ +additionalProperties: + formFields: + - default: "/home/dpanel" + edit: true + envKey: DPANEL_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 8080 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "admin" + edit: true + envKey: INSTALL_USERNAME + labelZh: 管理员 用户名 + labelEn: Admin Username + required: true + type: text + - default: "admin" + edit: true + envKey: INSTALL_PASSWORD + labelZh: 管理员 密码 + labelEn: Admin Password + required: true + type: text diff --git a/apps/dpanel-lite/1.2.0/docker-compose.yml b/apps/dpanel-lite/1.2.0/docker-compose.yml new file mode 100644 index 00000000..19b59539 --- /dev/null +++ b/apps/dpanel-lite/1.2.0/docker-compose.yml @@ -0,0 +1,31 @@ +networks: + 1panel-network: + external: true + +services: + dpanel: + image: dpanel/dpanel:1.2.0-lite + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8080 + env_file: + - /etc/1panel/envs/global.env + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${DPANEL_ROOT_PATH}/data:/dpanel + - ${DPANEL_ROOT_PATH}/compose:/dpanel/compose + - /var/run/docker.sock:/var/run/docker.sock + environment: + - APP_NAME=${CONTAINER_NAME} + dpanel-plugin-explorer: + image: alpine:latest + container_name: dpanel-plugin-explorer + restart: unless-stopped + privileged: true + pid: host + command: [ "sh", "-c", "tail -f /dev/null" ] diff --git a/apps/dpanel-lite/1.2.0/scripts/init.sh b/apps/dpanel-lite/1.2.0/scripts/init.sh new file mode 100644 index 00000000..77b84912 --- /dev/null +++ b/apps/dpanel-lite/1.2.0/scripts/init.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/dpanel-lite/1.2.0/scripts/uninstall.sh b/apps/dpanel-lite/1.2.0/scripts/uninstall.sh new file mode 100644 index 00000000..c86c4fbc --- /dev/null +++ b/apps/dpanel-lite/1.2.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/dpanel-lite/1.2.0/scripts/upgrade.sh b/apps/dpanel-lite/1.2.0/scripts/upgrade.sh new file mode 100644 index 00000000..77b84912 --- /dev/null +++ b/apps/dpanel-lite/1.2.0/scripts/upgrade.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/dpanel-lite/README.md b/apps/dpanel-lite/README.md new file mode 100644 index 00000000..053ceece --- /dev/null +++ b/apps/dpanel-lite/README.md @@ -0,0 +1,33 @@ +# DPanel + +Docker可视化管理面板 + +![Dockge](https://file.lifebus.top/imgs/dpanel_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 简介 + +Docker 可视化面板系统,提供完善的 docker 管理功能。 + +该应用为 轻量版 DPanel,不包含域名管理、证书管理等功能。 + +## 安装说明 + +
+
+ ⚠️ +
+ 警告
+ 该应用申请使用 `特权模式`, 将允许应用在容器内部执行特权操作,如挂载宿主机目录、访问宿主机设备等。 +
+
+
+ +> 默认用户名:`admin` +> +> 默认密码:`admin` + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/dpanel-lite/data.yml b/apps/dpanel-lite/data.yml new file mode 100644 index 00000000..7e5d40ea --- /dev/null +++ b/apps/dpanel-lite/data.yml @@ -0,0 +1,15 @@ +additionalProperties: + key: dpanel-lite + name: DPanel Lite + tags: + - WebSite + - Tool + - Local + shortDescZh: Docker可视化管理面板 + shortDescEn: Docker visual management panel + type: website + crossVersionUpdate: true + limit: 0 + website: https://dpanel.cc/ + github: https://github.com/donknap/dpanel/ + document: https://dpanel.cc/ diff --git a/apps/dpanel-lite/logo.png b/apps/dpanel-lite/logo.png new file mode 100644 index 00000000..ac30ad10 Binary files /dev/null and b/apps/dpanel-lite/logo.png differ diff --git a/apps/dpanel/1.2.0/data.yml b/apps/dpanel/1.2.0/data.yml index 5950bd50..01bfbe8a 100644 --- a/apps/dpanel/1.2.0/data.yml +++ b/apps/dpanel/1.2.0/data.yml @@ -9,12 +9,28 @@ additionalProperties: type: text - default: 8080 edit: true - envKey: PANEL_APP_PORT_HTTP + envKey: PANEL_APP_PORT_ADMIN labelZh: WebUI 端口 labelEn: WebUI port required: true rule: paramPort type: number + - default: 80 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: HTTP 服务端口 + labelEn: HTTP service port + required: true + rule: paramPort + type: number + - default: 443 + edit: true + envKey: PANEL_APP_PORT_HTTPS + labelZh: HTTPS 服务端口 + labelEn: HTTPS service port + required: true + rule: paramPort + type: number - default: "admin" edit: true envKey: INSTALL_USERNAME diff --git a/apps/dpanel/1.2.0/docker-compose.yml b/apps/dpanel/1.2.0/docker-compose.yml index 1a27ea22..5f733115 100644 --- a/apps/dpanel/1.2.0/docker-compose.yml +++ b/apps/dpanel/1.2.0/docker-compose.yml @@ -4,7 +4,7 @@ networks: services: dpanel: - image: dpanel/dpanel:1.2.0 + image: dpanel/dpanel:1.2.0-lite container_name: ${CONTAINER_NAME} labels: createdBy: "Apps" @@ -12,12 +12,15 @@ services: networks: - 1panel-network ports: - - ${PANEL_APP_PORT_HTTP}:8080 + - ${PANEL_APP_PORT_ADMIN}:8080 + - ${PANEL_APP_PORT_HTTP}:80 + - ${PANEL_APP_PORT_HTTPS}:443 env_file: - /etc/1panel/envs/global.env - ${ENV_FILE:-/etc/1panel/envs/default.env} volumes: - ${DPANEL_ROOT_PATH}/data:/dpanel + - ${DPANEL_ROOT_PATH}/compose:/dpanel/compose - /var/run/docker.sock:/var/run/docker.sock environment: - APP_NAME=${CONTAINER_NAME}