Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. version: "3"
  2. services:
  3.  
  4. db:
  5. image: postgres:9.4
  6. volumes:
  7. - db-data:/var/lib/postgresql/data
  8. networks:
  9. - backend
  10. deploy:
  11. placement:
  12. constraints: [node.role == manager]
  13.  
  14. sample_blog:
  15. image: quay.io/repository/copley/sample_blog
  16. ports:
  17. - 3000:80
  18. networks:
  19. - frontend
  20. deploy:
  21. replicas: 2
  22. update_config:
  23. parallelism: 2
  24. restart_policy:
  25. condition: on-failure
  26.  
  27. networks:
  28. frontend:
  29. backend:
  30.  
  31. volumes:
  32. db-data:
  33.  
  34. ID NAME MODE REPLICAS IMAGE
  35. dingz17v0qor sb_db replicated 0/1 postgres:9.4
  36. tq3lgqvwx627 sb_sample_blog replicated 0/2 quay.io/repository/copley/sample_blog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement