| 1 | version: "3" |
| 2 | services: |
| 3 | ulimit1: |
| 4 | image: ulimit_test |
| 5 | command: ["ulimit.sh" ] |
| 6 | ulimits: nofile=1001 |
| 7 | build: |
| 8 | context: ./ |
| 9 | dockerfile: Dockerfile |
| 10 | ulimit2: |
| 11 | image: ulimit_test |
| 12 | command: ["ulimit.sh" ] |
| 13 | ulimits: |
| 14 | - nproc=1002:2002 |
| 15 | - nofile=1002 |
| 16 | build: |
| 17 | context: ./ |
| 18 | dockerfile: Dockerfile |
| 19 | ulimit3: |
| 20 | image: ulimit_test |
| 21 | command: [ "ulimit.sh" ] |
| 22 | ulimits: |
| 23 | nofile: 1003 |
| 24 | nproc: |
| 25 | soft: 1003 |
| 26 | hard: 2003 |
| 27 | build: |
| 28 | context: ./ |
| 29 | dockerfile: Dockerfile |
| 30 |