Difference between revisions of "Docker-compose: services.deploy.resources"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
* https://docs.docker.com/reference/compose-file/deploy/
 
* https://docs.docker.com/reference/compose-file/deploy/
  
  services:
+
 
  frontend:
+
  {{services.deploy.resources}}
    image: example/webapp
+
 
    deploy:
+
 
      resources:
 
        limits:
 
          cpus: '0.50'
 
          memory: 50M
 
          pids: 1
 
        reservations:
 
          cpus: '0.25'
 
          memory: 20M
 
  
  

Latest revision as of 15:31, 25 October 2024

Advertising: