version: '3.3' services: app: image: swarmpit/swarmpit:latest environment: - SWARMPIT_DB=http://db:5984 - SWARMPIT_INFLUXDB=http://influxdb:8086 volumes: - /var/run/docker.sock:/var/run/docker.sock:ro healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080"] interval: 60s timeout: 10s retries: 3 networks: - net ports: - "888:8080" deploy: resources: limits: memory: 1024M reservations: memory: 512M placement: constraints: [node.labels.stage == production] db: image: treehouses/couchdb:2.3.1 networks: - net deploy: resources: limits: memory: 256M reservations: memory: 128M influxdb: image: influxdb:1.7 networks: - net deploy: resources: limits: memory: 256M reservations: memory: 128M agent: image: swarmpit/agent:latest environment: - DOCKER_API_VERSION=1.35 volumes: - /var/run/docker.sock:/var/run/docker.sock:ro networks: - net deploy: mode: global labels: swarmpit.agent: 'true' resources: limits: memory: 64M reservations: memory: 32M networks: net: driver: overlay