2025-08-28 20:27:42 +08:00
|
|
|
# Pull: docker compose -p redis --env-file ./dbSer/redis/env.cfg -f ./dbSer/redis/redis.stack.yml pull
|
2025-07-31 01:03:52 +08:00
|
|
|
|
2025-08-28 20:27:42 +08:00
|
|
|
# Run:: docker compose -p redis --env-file ./dbSer/redis/env.cfg -f ./dbSer/redis/redis.stack.yml up -d
|
2025-07-31 01:03:52 +08:00
|
|
|
services:
|
|
|
|
|
redis:
|
|
|
|
|
image: ${IMAGE_TAG_REDISV8}
|
2025-08-28 20:27:42 +08:00
|
|
|
restart: always
|
2025-07-31 01:03:52 +08:00
|
|
|
ports:
|
|
|
|
|
- '6379:6379'
|
|
|
|
|
command: redis-server --appendonly yes
|
|
|
|
|
volumes:
|
|
|
|
|
- '${Volumes_PATH}/redis:/data'
|
2025-08-28 20:27:42 +08:00
|
|
|
environment:
|
|
|
|
|
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
|
|
|
|
- REDIS_PORT=6379
|
|
|
|
|
- REDIS_DB=1
|
|
|
|
|
- REDIS_MAXMEMORY=1gb
|
|
|
|
|
- REDIS_MAXMEMORYPOLICY=allkeys-lru
|