This commit is contained in:
2022-04-18 11:21:20 +08:00
commit 45a7af638f
210 changed files with 8997 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# 部署 redis 单点
- 按实际环境修改
- docker-compose.yml
- 创建目录
```
grep '\<source:' docker-compose.yml cut -d: -f2 | xargs mkdir -p
```
- 启动
```
docker-compose up -d
```

View File

@@ -0,0 +1,22 @@
version: "3.7"
services:
redis:
image: harbor.colben.cn/general/redis
container_name: redis
restart: "on-failure"
stop_grace_period: 1m
privileged: true
environment:
_CONF_maxmemory: 1GB
_CONF_port: 6379
ports:
- 6379:6379
volumes:
- type: bind
source: ./redis/data
target: /var/lib/redis
- type: bind
source: ./redis/log
target: /var/log/redis