添加 docker-compose/redis/redis.yaml
This commit is contained in:
22
docker-compose/redis/redis.yaml
Normal file
22
docker-compose/redis/redis.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
redis:
|
||||
image: redis:6.2.7
|
||||
container_name: redis
|
||||
restart: always
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- /storage/data/redis/conf/redis.conf:/etc/redis/redis.conf
|
||||
- /storage/data/redis/data:/data
|
||||
command: redis-server /etc/redis/redis.conf
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 65535
|
||||
hard: 65535
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 1G
|
||||
Reference in New Issue
Block a user