fix: Optimize redis command (#4165)
This commit is contained in:
@@ -7,13 +7,7 @@ services:
|
|||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:6379
|
- ${PANEL_APP_PORT_HTTP}:6379
|
||||||
command: >
|
command: redis-server /etc/redis/redis.conf ${PANEL_REDIS_ROOT_PASSWORD:+--requirepass "${PANEL_REDIS_ROOT_PASSWORD}"}
|
||||||
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:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
- ./conf/redis.conf:/etc/redis/redis.conf
|
- ./conf/redis.conf:/etc/redis/redis.conf
|
||||||
|
|||||||
@@ -7,13 +7,7 @@ services:
|
|||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:6379
|
- ${PANEL_APP_PORT_HTTP}:6379
|
||||||
command: >
|
command: redis-server /etc/redis/redis.conf ${PANEL_REDIS_ROOT_PASSWORD:+--requirepass "${PANEL_REDIS_ROOT_PASSWORD}"}
|
||||||
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:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
- ./conf/redis.conf:/etc/redis/redis.conf
|
- ./conf/redis.conf:/etc/redis/redis.conf
|
||||||
|
|||||||
@@ -7,13 +7,7 @@ services:
|
|||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:6379
|
- ${PANEL_APP_PORT_HTTP}:6379
|
||||||
command: >
|
command: redis-server /etc/redis/redis.conf ${PANEL_REDIS_ROOT_PASSWORD:+--requirepass "${PANEL_REDIS_ROOT_PASSWORD}"}
|
||||||
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:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
- ./conf/redis.conf:/etc/redis/redis.conf
|
- ./conf/redis.conf:/etc/redis/redis.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user