为容器增加限制
This commit is contained in:
@@ -3,5 +3,15 @@ version: "3"
|
||||
services:
|
||||
build_self:
|
||||
build: .
|
||||
container_name: build_self
|
||||
ports:
|
||||
- "5001:80"
|
||||
- "5001:80"
|
||||
storage_opt:
|
||||
size: 50M
|
||||
cpus: 0.5
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 100M
|
||||
reservations:
|
||||
memory: 100M
|
||||
Reference in New Issue
Block a user