2023-02-06 15:53:30 +08:00
|
|
|
services:
|
2023-02-07 15:21:24 +08:00
|
|
|
redis:
|
2023-10-19 13:58:28 +08:00
|
|
|
image: redis:6.2.14
|
2023-02-06 15:53:30 +08:00
|
|
|
restart: always
|
2023-02-22 17:12:24 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
2023-02-06 15:53:30 +08:00
|
|
|
networks:
|
2023-02-13 15:30:25 +08:00
|
|
|
- 1panel-network
|
2023-02-06 15:53:30 +08:00
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:6379
|
2024-05-30 17:39:04 +08:00
|
|
|
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'
|
2023-02-06 15:53:30 +08:00
|
|
|
volumes:
|
|
|
|
- ./data:/data
|
|
|
|
- ./conf/redis.conf:/etc/redis/redis.conf
|
|
|
|
- ./logs:/logs
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
2023-02-13 15:30:25 +08:00
|
|
|
1panel-network:
|
2023-02-06 15:53:30 +08:00
|
|
|
external: true
|