mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-14 23:22:09 +08:00
29 lines
667 B
YAML
29 lines
667 B
YAML
version: "3.8"
|
|
|
|
networks:
|
|
1panel-network:
|
|
external: true
|
|
|
|
services:
|
|
redis:
|
|
image: redis:7.2.5-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
|