说明设计停止条件和容器资源配置
This commit is contained in:
parent
30cdd05914
commit
eb7033c496
4 changed files with 85 additions and 26 deletions
|
|
@ -3,7 +3,7 @@ services:
|
|||
image: redis:7.4.8-bookworm
|
||||
container_name: np-redis
|
||||
restart: always
|
||||
mem_limit: 2g
|
||||
mem_limit: 3g
|
||||
command: ["redis-server", "--appendonly", "yes", "--appendfsync", "everysec", "--save", "60", "1"]
|
||||
volumes:
|
||||
- ./runtime/redis:/data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue