docker-compose.yml 684 B

1234567891011121314151617181920212223242526272829303132
  1. version: "3"
  2. services:
  3. nginx:
  4. image: daocloud.io/daocloud/dao-2048:v1.0.2
  5. ports:
  6. - 8081:80
  7. deploy:
  8. mode: replicated
  9. replicas: 4
  10. visualizer:
  11. image: 192.168.99.100:5000/dockersamples/visualizer:latest
  12. ports:
  13. - "8080:8080"
  14. volumes:
  15. - "/var/run/docker.sock:/var/run/docker.sock"
  16. deploy:
  17. replicas: 1
  18. placement:
  19. constraints: [node.role == manager]
  20. portainer:
  21. image: 192.168.99.100:5000/portainer/portainer:latest
  22. ports:
  23. - "9000:9000"
  24. volumes:
  25. - "/var/run/docker.sock:/var/run/docker.sock"
  26. deploy:
  27. replicas: 1
  28. placement:
  29. constraints: [node.role == manager]