forked from LaconicNetwork/kompose
This adds support for CPU limit, CPU reservation as well as memory reservation. Specifically, when using the `deploy` key in Docker Compose.
14 lines
206 B
YAML
14 lines
206 B
YAML
version: "3"
|
|
|
|
services:
|
|
foo:
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.01'
|
|
memory: 50M
|
|
reservations:
|
|
cpus: '0.001'
|
|
memory: 20M
|
|
image: redis
|