Difference between revisions of "Docker compose: deploy:"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
 
Official example:
 
Official example:
<pre>
+
 
services:
+
services:
  frontend:
+
  frontend:
    image: example/webapp
+
    [[image:]] example/webapp
    deploy:
+
    deploy:
      resources:
+
      [[resources:]]
        limits:
+
        limits:
          cpus: '0.50'
+
          cpus: '0.50'
          memory: 50M
+
          memory: 50M
          pids: 1
+
          pids: 1
        reservations:
+
        reservations:
          cpus: '0.25'
+
          cpus: '0.25'
          memory: 20M
+
          memory: 20M
</pre>
 
  
  
 
{{docker-compose}}
 
{{docker-compose}}

Revision as of 15:27, 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


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: