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,不包含域名管理、证书管理等功能。 + +## 安装说明 + +