forked from extern/podman-compose
2202e7f39b
- supports `ulimit: host` or other single value - As well as `ulimit: [nofile=5000, nproc=5000]` array - As well as `ulimit: {nofile: 5000, nproc: 5000}` dict Authored-by: Tyler Ramer <tramer@pivotal.io>
31 lines
598 B
YAML
31 lines
598 B
YAML
version: "3"
|
|
services:
|
|
ulimit1:
|
|
image: ulimit_test
|
|
command: ["ulimit.sh" ]
|
|
ulimit: nofile=1001
|
|
build:
|
|
context: ./
|
|
dockerfile: Dockerfile
|
|
ulimit2:
|
|
image: ulimit_test
|
|
command: ["ulimit.sh" ]
|
|
ulimit:
|
|
- nproc=1002:2002
|
|
- nofile=1002
|
|
build:
|
|
context: ./
|
|
dockerfile: Dockerfile
|
|
ulimit3:
|
|
image: ulimit_test
|
|
command: [ "ulimit.sh" ]
|
|
ulimit:
|
|
nofile: 1003
|
|
nproc:
|
|
soft: 1003
|
|
hard: 2003
|
|
build:
|
|
context: ./
|
|
dockerfile: Dockerfile
|
|
|