✨ feat(redis): update redis versions to latest releases
- update redis 6.2.18 to 6.2.20 - update redis 7.4.4 to 7.4.6
This commit is contained in:
2276
apps/redis/7.4.6/config/redis.conf
Normal file
2276
apps/redis/7.4.6/config/redis.conf
Normal file
File diff suppressed because it is too large
Load Diff
23
apps/redis/7.4.6/data.yml
Normal file
23
apps/redis/7.4.6/data.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "./data"
|
||||
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
|
||||
26
apps/redis/7.4.6/docker-compose.yml
Normal file
26
apps/redis/7.4.6/docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: redis:7.4.6-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
|
||||
18
apps/redis/7.4.6/scripts/init.sh
Normal file
18
apps/redis/7.4.6/scripts/init.sh
Normal 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
|
||||
Reference in New Issue
Block a user