refs #3723 Portainer compose updated with mem limits and version 2.17.2

This commit is contained in:
Juan Ferrer 2023-03-06 11:01:37 +01:00
parent bf5c9622f1
commit 479d218ad8
1 changed files with 9 additions and 2 deletions

View File

@ -1,18 +1,22 @@
version: '3.2' version: '3.2'
services: services:
agent: agent:
image: portainer/agent:2.11.1 image: portainer/agent:2.17.1
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes - /var/lib/docker/volumes:/var/lib/docker/volumes
- /var/lib/rexray/volumes:/var/lib/rexray/volumes
networks: networks:
- agent - agent
deploy: deploy:
mode: global mode: global
placement: placement:
constraints: [node.platform.os == linux] constraints: [node.platform.os == linux]
resources:
limits:
memory: 500M
main: main:
image: portainer/portainer-ce:2.11.1 image: portainer/portainer-ce:2.17.1
command: -H tcp://tasks.agent:9001 --tlsskipverify command: -H tcp://tasks.agent:9001 --tlsskipverify
ports: ports:
- "80:9000" - "80:9000"
@ -26,6 +30,9 @@ services:
replicas: 1 replicas: 1
placement: placement:
constraints: [node.role == manager] constraints: [node.role == manager]
resources:
limits:
memory: 2G
networks: networks:
agent: agent:
driver: overlay driver: overlay