mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
Add resource reservations to container inspect
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
parent
b1edfb6507
commit
6516632ecf
8 changed files with 103 additions and 34 deletions
|
|
@ -1,14 +0,0 @@
|
|||
services:
|
||||
db:
|
||||
build: db
|
||||
image: gtardif/sentences-db
|
||||
|
||||
words:
|
||||
build: words
|
||||
image: gtardif/sentences-api
|
||||
|
||||
web:
|
||||
build: web
|
||||
image: gtardif/sentences-web
|
||||
ports:
|
||||
- "80:80"
|
||||
24
tests/composefiles/aci-demo/aci_demo_port_resources.yaml
Normal file
24
tests/composefiles/aci-demo/aci_demo_port_resources.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
services:
|
||||
db:
|
||||
image: gtardif/sentences-db
|
||||
|
||||
words:
|
||||
image: gtardif/sentences-api
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
cpus: '0.5'
|
||||
memory: 0.7G
|
||||
|
||||
web:
|
||||
image: gtardif/sentences-web
|
||||
ports:
|
||||
- "80:80"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.7'
|
||||
memory: 1G
|
||||
reservations:
|
||||
cpus: '0.5'
|
||||
memory: 0.5G
|
||||
Loading…
Add table
Add a link
Reference in a new issue