Difference between revisions of "Docker compose: deploy:"
Jump to navigation
Jump to search
(Created page with "https://docs.docker.com/reference/compose-file/deploy/ {{docker-compose}}") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
+ | Official example: | ||
− | {{docker-compose}} | + | services: |
+ | frontend: | ||
+ | [[image]]: example/webapp | ||
+ | deploy: | ||
+ | [[resources:]] | ||
+ | limits: | ||
+ | cpus: '0.50' | ||
+ | memory: 50M | ||
+ | pids: 1 | ||
+ | reservations: | ||
+ | cpus: '0.25' | ||
+ | memory: 20M | ||
+ | |||
+ | == Related == | ||
+ | * [[services.deploy.resources]] | ||
+ | |||
+ | == See also == | ||
+ | * {{docker-compose}} |
Latest revision as of 15:33, 25 October 2024
https://docs.docker.com/reference/compose-file/deploy/
Official example:
services: frontend: image: example/webapp deploy: resources: limits: cpus: '0.50' memory: 50M pids: 1 reservations: cpus: '0.25' memory: 20M
Related[edit]
See also[edit]
docker-compose
,docker-compose.yml
: [services
|volumes
|networks
|up
|down
|restart
|logs
|create
|changelog
|version
|secrets
|config
|-v
|-h
|exec], docker-compose pull
,Environment:
, Docker-compose.yml examples,.env
, release notes, expose:, docker-compose --env-file,services.deploy.resources
Advertising: