1
0

Merge QYG2297248353/appstore-1panel into pooneyy/1Panel-Appstore

This commit is contained in:
pooneyy
2025-06-14 16:56:25 +08:00
1733 changed files with 48687 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,23 @@
additionalProperties:
formFields:
- default: "/home/redis"
envKey: REDIS_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 6379
envKey: PANEL_APP_PORT_HTTP
labelZh: 端口
labelEn: Port
required: true
rule: paramPort
type: number
- default: ""
envKey: REDIS_ROOT_PASSWORD
labelZh: 密码
labelEn: Password
random: true
required: false
rule: paramComplexity
type: password

View File

@@ -0,0 +1,26 @@
networks:
1panel-network:
external: true
services:
redis:
image: redis:6.2.18-alpine
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:6379
command: >
sh -c '
if [ -z "${REDIS_ROOT_PASSWORD}" ]; then
redis-server /etc/redis/redis.conf
else
redis-server /etc/redis/redis.conf --requirepass ${REDIS_ROOT_PASSWORD}
fi'
volumes:
- ${REDIS_ROOT_PATH}/data:/data
- ${REDIS_ROOT_PATH}/config/redis.conf:/etc/redis/redis.conf
- ${REDIS_ROOT_PATH}/logs:/logs

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai

View File

@@ -0,0 +1,18 @@
#!/bin/bash
if [ -f .env ]; then
source .env
mkdir -p "$REDIS_ROOT_PATH"
mkdir -p "$REDIS_ROOT_PATH/data"
mkdir -p "$REDIS_ROOT_PATH/config"
mkdir -p "$REDIS_ROOT_PATH/logs"
cp ./config/redis.conf "$REDIS_ROOT_PATH/config/redis.conf"
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

File diff suppressed because it is too large Load Diff

23
apps/redis/7.4.4/data.yml Normal file
View File

@@ -0,0 +1,23 @@
additionalProperties:
formFields:
- default: "/home/redis"
envKey: REDIS_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 6379
envKey: PANEL_APP_PORT_HTTP
labelZh: 端口
labelEn: Port
required: true
rule: paramPort
type: number
- default: ""
envKey: REDIS_ROOT_PASSWORD
labelZh: 密码
labelEn: Password
random: true
required: false
rule: paramComplexity
type: password

View File

@@ -0,0 +1,26 @@
networks:
1panel-network:
external: true
services:
redis:
image: redis:7.4.4-alpine
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:6379
command: >
sh -c '
if [ -z "${REDIS_ROOT_PASSWORD}" ]; then
redis-server /etc/redis/redis.conf
else
redis-server /etc/redis/redis.conf --requirepass ${REDIS_ROOT_PASSWORD}
fi'
volumes:
- ${REDIS_ROOT_PATH}/data:/data
- ${REDIS_ROOT_PATH}/config/redis.conf:/etc/redis/redis.conf
- ${REDIS_ROOT_PATH}/logs:/logs

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai

View File

@@ -0,0 +1,18 @@
#!/bin/bash
if [ -f .env ]; then
source .env
mkdir -p "$REDIS_ROOT_PATH"
mkdir -p "$REDIS_ROOT_PATH/data"
mkdir -p "$REDIS_ROOT_PATH/config"
mkdir -p "$REDIS_ROOT_PATH/logs"
cp ./config/redis.conf "$REDIS_ROOT_PATH/config/redis.conf"
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

23
apps/redis/README.md Normal file
View File

@@ -0,0 +1,23 @@
# Redis
RedisRemote Dictionary Server是一种开源的内存数据库通常用作缓存系统或键值存储数据库。
![Redis](https://raw.githubusercontent.com/docker-library/docs/0e42ee108b46e1ba6333e9eb44201b8f26c4032d/redis/logo.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)
## 简介
Redis 通常被称为数据结构服务器。这意味着Redis 可通过一系列命令访问可变数据结构,这些命令通过 TCP
套接字和简单协议以服务器-客户端模式发送。因此,不同进程可以通过共享方式查询和修改相同的数据结构。
Redis 中的数据结构具有一些特殊属性:
+ Redis 会将它们存储在磁盘上,即使它们总是在服务器内存中提供和修改。这意味着 Redis 不仅速度快,而且不易挥发。
+ 数据结构的实现强调内存效率因此与使用高级编程语言建模的相同数据结构相比Redis 中的数据结构使用的内存可能更少。
+ Redis 提供了许多在数据库中自然能找到的功能,如复制、可调整的耐用性级别、集群和高可用性。
另一个很好的例子是,将 Redis 视为更复杂版本的 memcached其中的操作不仅仅是 SET 和 GET而是处理复杂数据类型如列表、集合、有序数据结构等的操作。
---
![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png)

16
apps/redis/data.yml Normal file
View File

@@ -0,0 +1,16 @@
additionalProperties:
key: redis
name: Redis
tags:
- Database
- Runtime
- Storage
- Local
shortDescZh: 高性能的开源键值数据库
shortDescEn: High-performance key-value database
type: runtime
crossVersionUpdate: true
limit: 0
website: https://redis.io/
github: https://github.com/redis/redis/
document: https://redis.io/docs/

BIN
apps/redis/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB