diff --git a/portainer/docker-compose.yml b/portainer/docker-compose.yml index 8d65413..0aa52be 100644 --- a/portainer/docker-compose.yml +++ b/portainer/docker-compose.yml @@ -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