version: "3" services: senaite: image: ramonski/senaite:latest deploy: replicas: 1 restart_policy: condition: on-failure resources: limits: cpus: "1" memory: 2G ports: - "8080:8080" networks: - webnet visualizer: image: dockersamples/visualizer:stable ports: - "8000:8080" volumes: - "/var/run/docker.sock:/var/run/docker.sock" deploy: placement: constraints: [node.role == manager] networks: - webnet networks: webnet: