refs #3723 Portainer compose updated with mem limits and version 2.17.2
This commit is contained in:
parent
bf5c9622f1
commit
479d218ad8
|
@ -1,18 +1,22 @@
|
|||
version: '3.2'
|
||||
services:
|
||||
agent:
|
||||
image: portainer/agent:2.11.1
|
||||
image: portainer/agent:2.17.1
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
||||
- /var/lib/rexray/volumes:/var/lib/rexray/volumes
|
||||
networks:
|
||||
- agent
|
||||
deploy:
|
||||
mode: global
|
||||
placement:
|
||||
constraints: [node.platform.os == linux]
|
||||
resources:
|
||||
limits:
|
||||
memory: 500M
|
||||
main:
|
||||
image: portainer/portainer-ce:2.11.1
|
||||
image: portainer/portainer-ce:2.17.1
|
||||
command: -H tcp://tasks.agent:9001 --tlsskipverify
|
||||
ports:
|
||||
- "80:9000"
|
||||
|
@ -26,6 +30,9 @@ services:
|
|||
replicas: 1
|
||||
placement:
|
||||
constraints: [node.role == manager]
|
||||
resources:
|
||||
limits:
|
||||
memory: 2G
|
||||
networks:
|
||||
agent:
|
||||
driver: overlay
|
||||
|
|
Loading…
Reference in New Issue