version: "3" services: nginx: image: daocloud.io/daocloud/dao-2048:v1.0.2 ports: - 8081:80 deploy: mode: replicated replicas: 4 visualizer: image: 192.168.99.100:5000/dockersamples/visualizer:latest ports: - "8080:8080" volumes: - "/var/run/docker.sock:/var/run/docker.sock" deploy: replicas: 1 placement: constraints: [node.role == manager] portainer: image: 192.168.99.100:5000/portainer/portainer:latest ports: - "9000:9000" volumes: - "/var/run/docker.sock:/var/run/docker.sock" deploy: replicas: 1 placement: constraints: [node.role == manager]