From e5754e1fd25689a1009e2cb6c954b21fd39cdc2d Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <1paneldev@sina.com> Date: Mon, 23 Jun 2025 12:17:24 +0800 Subject: [PATCH] core: add cloudreve 4.0.0 --- cloudreve/4.0.0/data.yml | 128 ++++++++++++++++++++++++++--- cloudreve/4.0.0/docker-compose.yml | 31 ++++--- cloudreve/data.yml | 2 +- 3 files changed, 137 insertions(+), 24 deletions(-) diff --git a/cloudreve/4.0.0/data.yml b/cloudreve/4.0.0/data.yml index 222569398..27e8e7691 100644 --- a/cloudreve/4.0.0/data.yml +++ b/cloudreve/4.0.0/data.yml @@ -1,10 +1,118 @@ -additionalProperties: - formFields: - - default: 40033 - edit: true - envKey: PANEL_APP_PORT_HTTP - labelEn: Port - labelZh: 端口 - required: true - rule: paramPort - type: number +additionalProperties: + formFields: + - default: postgres + envKey: PANEL_DB_TYPE + labelEn: Database Service + labelZh: 数据库服务 + label: + en: Database Service + ja: データベースサービス + ms: Perkhidmatan Pangkalan Data + pt-br: Serviço de Banco de Dados + ru: Сервис базы данных + ko: 데이터베이스 서비스 + zh: 数据库服务 + zh-Hant: 數據庫 服務 + required: true + type: apps + child: + default: "" + envKey: PANEL_DB_HOST + required: true + type: service + values: + - label: PostgreSQL + value: postgres + - label: MySQL + value: mysql + - label: MariaDB + value: mariadb + - default: cloudreve + envKey: PANEL_DB_NAME + labelEn: Database + labelZh: 数据库名 + label: + en: Database + ja: データベース + ms: Pangkalan Data + pt-br: Banco de Dados + ru: База данных + ko: 데이터베이스 + zh: 数据库名 + zh-Hant: 數據庫名 + random: true + required: true + rule: paramCommon + type: text + - default: cloudreve + envKey: PANEL_DB_USER + labelEn: User + labelZh: 数据库用户 + label: + en: User + ja: ユーザー + ms: Pengguna + pt-br: Usuário + ru: Пользователь + ko: 사용자 + zh: 数据库用户 + zh-Hant: 數據庫用戶 + random: true + required: true + rule: paramCommon + type: text + - default: cloudreve + envKey: PANEL_DB_USER_PASSWORD + labelEn: Password + labelZh: 数据库用户密码 + label: + en: Password + ja: パスワード + ms: Kata Laluan + pt-br: Senha + ru: Пароль + ko: 비밀번호 + zh: 数据库用户密码 + zh-Hant: 數據庫用戶密碼 + random: true + required: true + type: password + - default: "" + envKey: PANEL_REDIS_HOST + key: redis + labelEn: Redis Service + labelZh: redis 服务 + required: true + type: service + label: + en: Redis Service + ja: Redisサービス + ms: Perkhidmatan Redis + pt-br: Serviço Redis + ru: Сервис Redis + ko: Redis 서비스 + zh: redis 服务 + zh-Hant: redis 服务 + - default: "" + envKey: PANEL_REDIS_ROOT_PASSWORD + labelEn: Redis Service Password + labelZh: 缓存服务服务密码 + required: false + type: password + - default: 40033 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + label: + en: Port + ja: ポート + ms: Port + pt-br: Porta + ru: Порт + ko: 포트 + zh: 端口 + zh-Hant: 埠 + required: true + rule: paramPort + type: number diff --git a/cloudreve/4.0.0/docker-compose.yml b/cloudreve/4.0.0/docker-compose.yml index 3852ca0e3..b6fd59670 100644 --- a/cloudreve/4.0.0/docker-compose.yml +++ b/cloudreve/4.0.0/docker-compose.yml @@ -1,20 +1,25 @@ services: cloudreve: + image: cloudreve/cloudreve:4.0.0 container_name: ${CONTAINER_NAME} restart: always + ports: + - ${PANEL_APP_PORT_HTTP}:5212 + environment: + - CR_CONF_Database.Type=${PANEL_DB_TYPE} + - CR_CONF_Database.Host=${PANEL_DB_HOST} + - CR_CONF_Database.Name=${PANEL_DB_NAME} + - CR_CONF_Database.User=${PANEL_DB_USER} + - CR_CONF_Database.Password=${PANEL_DB_USER_PASSWORD} + - CR_CONF_Database.Port=5432 + - CR_CONF_Redis.Server=${PANEL_REDIS_HOST}:6379 + - CR_CONF_Redis.Password=${PANEL_REDIS_ROOT_PASSWORD} + volumes: + - ./data:/cloudreve/data + labels: + createdBy: "Apps" networks: - 1panel-network - ports: - - "${PANEL_APP_PORT_HTTP}:5212" - volumes: - - "./data/uploads:/cloudreve/uploads" - - "./data/data:/data" - - "./data/conf.ini:/cloudreve/conf.ini" - - "./data/cloudreve.db:/cloudreve/cloudreve.db" - - "./data/avatar:/cloudreve/avatar" - image: cloudreve/cloudreve:4.0.0 - labels: - createdBy: "Apps" -networks: - 1panel-network: +networks: + 1panel-network: external: true diff --git a/cloudreve/data.yml b/cloudreve/data.yml index e88435552..8a2e95da8 100644 --- a/cloudreve/data.yml +++ b/cloudreve/data.yml @@ -11,7 +11,7 @@ additionalProperties: shortDescZh: 支持多家云存储的云盘系统 shortDescEn: Self-hosted file management system with muilt-cloud support type: website - crossVersionUpdate: true + crossVersionUpdate: false limit: 0 recommend: 0 website: https://cloudreve.org/