ersion: '3.7' services: swarmpit: image: swarmpit/swarmpit:latest environment: - SWARMPIT_DB=http://docker.internal:5984 - SWARMPIT_INFLUXDB=http://docker.internal:8086 volumes: - /var/run/docker.sock:/var/run/docker.sock:ro ports: - 888:8080 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080"] interval: 60s timeout: 10s retries: 3 deploy: resources: limits: cpus: '0.50' memory: 1024M reservations: cpus: '0.25' memory: 512M placement: constraints: - node.role == manager swarmpit_agent: image: swarmpit/agent:latest environment: - DOCKER_API_VERSION=1.35 volumes: - /var/run/docker.sock:/var/run/docker.sock:ro deploy: mode: global labels: swarmpit.agent: 'true' resources: limits: cpus: '0.10' memory: 64M reservations: cpus: '0.05' memory: 32M