appstore-1panel/dockge/redis_6_2_16/docker-compose.yml
2024-11-28 09:03:16 +00:00

22 lines
615 B
YAML

networks:
1panel-network:
external: true
services:
redis:
command: "sh -c ' if [ -z \"${REDIS_ROOT_PASSWORD}\" ]; then\n redis-server /etc/redis/redis.conf\n\
else\n redis-server /etc/redis/redis.conf --requirepass ${REDIS_ROOT_PASSWORD}\n\
fi'\n"
container_name: redis
image: redis:6.2.16-alpine
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:6379
restart: always
volumes:
- ${REDIS_ROOT_PATH}/data:/data
- ${REDIS_ROOT_PATH}/config/redis.conf:/etc/redis/redis.conf
- ${REDIS_ROOT_PATH}/logs:/logs