Added ulimits functionality to docker compose
Signed-off-by: Kevin Greene <kevin@spantree.net>
This commit is contained in:
parent
7d6c63d1b7
commit
22d90d2180
6 changed files with 152 additions and 0 deletions
|
|
@ -333,6 +333,17 @@ Override the default labeling scheme for each container.
|
|||
- label:user:USER
|
||||
- label:role:ROLE
|
||||
|
||||
### ulimits
|
||||
|
||||
Override the default ulimits for a container. You can either use a number
|
||||
to set the hard and soft limits, or specify them in a dictionary.
|
||||
|
||||
ulimits:
|
||||
nproc: 65535
|
||||
nofile:
|
||||
soft: 20000
|
||||
hard: 40000
|
||||
|
||||
### volumes, volume\_driver
|
||||
|
||||
Mount paths as volumes, optionally specifying a path on the host machine
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue