2.11
This commit is contained in:
parent
2e25a8f839
commit
86fe5b97e0
@ -13,7 +13,7 @@ services:
|
||||
restart: unless-stopped # 容器退出时自动重启,除非明确停止
|
||||
mem_limit: "12g" # 容器最大可使用内存为8GB
|
||||
mem_reservation: "4g" # 容器保证可使用内存为4GB
|
||||
cpus: 2.0 # 限制容器使用2个CPU核心
|
||||
cpus: 4.0 # 限制容器使用2个CPU核心
|
||||
security_opt:
|
||||
- seccomp:unconfined
|
||||
# 可选:定义网络或其他全局配置
|
||||
|
Loading…
x
Reference in New Issue
Block a user