mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-10 21:16:55 +08:00
feat: 安装 Redis 允许密码为空 (#1500)
This commit is contained in:
parent
08cec60af6
commit
630097a4e0
@ -1,11 +1,11 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: jhkdjhkjdhsIUTYURT
|
||||
- default: redis
|
||||
envKey: PANEL_REDIS_ROOT_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 密码
|
||||
random: true
|
||||
required: true
|
||||
required: false
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: 6379
|
||||
|
@ -7,7 +7,13 @@ services:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:6379
|
||||
command: redis-server /etc/redis/redis.conf --loglevel warning --requirepass ${PANEL_REDIS_ROOT_PASSWORD}
|
||||
command: >
|
||||
sh -c '
|
||||
if [ -z "${PANEL_REDIS_ROOT_PASSWORD}" ]; then
|
||||
redis-server /etc/redis/redis.conf
|
||||
else
|
||||
redis-server /etc/redis/redis.conf --requirepass ${PANEL_REDIS_ROOT_PASSWORD}
|
||||
fi'
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./conf/redis.conf:/etc/redis/redis.conf
|
||||
|
@ -1,11 +1,11 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: jhkdjhkjdhsIUTYURTU
|
||||
- default: redis
|
||||
envKey: PANEL_REDIS_ROOT_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 密码
|
||||
random: true
|
||||
required: true
|
||||
required: false
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: 6379
|
||||
|
@ -7,7 +7,13 @@ services:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:6379
|
||||
command: redis-server /etc/redis/redis.conf --requirepass ${PANEL_REDIS_ROOT_PASSWORD}
|
||||
command: >
|
||||
sh -c '
|
||||
if [ -z "${PANEL_REDIS_ROOT_PASSWORD}" ]; then
|
||||
redis-server /etc/redis/redis.conf
|
||||
else
|
||||
redis-server /etc/redis/redis.conf --requirepass ${PANEL_REDIS_ROOT_PASSWORD}
|
||||
fi'
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./conf/redis.conf:/etc/redis/redis.conf
|
||||
|
@ -12,7 +12,7 @@ additionalProperties:
|
||||
shortDescEn: High-performance open-source key-value database
|
||||
type: runtime
|
||||
crossVersionUpdate: true
|
||||
limit: 1
|
||||
limit: 0
|
||||
recommend: 4
|
||||
website: https://redis.io/
|
||||
github: https://github.com/redis/redis
|
||||
|
Loading…
Reference in New Issue
Block a user