Advertisement
Guest User

Untitled

a guest
Sep 12th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. postgres:
  2. image: 'postgres:latest'
  3. environment:
  4. - POSTGRES_USER=blog
  5. - POSTGRES_PASSWORD=blog123
  6.  
  7. redis:
  8. restart: always
  9. labels:
  10. io.rancher.scheduler.affinity:host_label: rediscluster=true
  11. io.rancher.scheduler.affinity:container_label_soft_ne: pptqueuenew=true
  12. io.rancher.container.pull_image: always
  13. tty: true
  14. image: redis:3
  15. stdin_open: true
  16.  
  17. web:
  18. image: 'ourrepository/myblog:latest'
  19. restart: always
  20. links:
  21. - postgres:postgres
  22. - redis:redis
  23. - beanstalk:queue
  24. environment:
  25. - APP_DEBUG=false
  26. - DB_HOST=postgres
  27. - QUEUE_DRIVER=redis
  28. - DB_DATABASE=blog
  29. - DB_USERNAME=blog
  30. - DB_PASSWORD=blog123
  31. - USERMOD="1000 www-data"
  32.  
  33.  
  34. beanstalk:
  35. image: 'schickling/beanstalkd:latest'
  36. restart: always
  37. labels:
  38. io.rancher.scheduler.affinity:host_label: beanstalk=true
  39. io.rancher.scheduler.affinity:container_label_soft_ne: pptqueuenew=true
  40. tty: true
  41. stdin_open: true
  42.  
  43. web-balancer:
  44. restart: always
  45. ports:
  46. - 443:80
  47. - 80:80
  48. labels:
  49. io.rancher.loadbalancer.ssl.ports: '443'
  50. io.rancher.scheduler.affinity:host_label: location=frontend
  51. io.rancher.loadbalancer.target.web: myblog.com,www.myblog.com
  52. tty: true
  53. image: rancher/load-balancer-service
  54. links:
  55. - web:web
  56. stdin_open: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement