Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. nginx:
  2. image: nginx:latest
  3. publish_all: true
  4. mem_min: 50m
  5. host: host1
  6. plugins:
  7. - !plugin
  8. id: 0H1Nk
  9. restart: true
  10. lifecycle: on_create, post_scale_out:ruby, post_scale_in:ruby
  11. arguments:
  12. # Use container_private_ip if you're using Docker networking
  13. - servers=server {{ruby | container_private_ip}}:3000;
  14. # Use container_hostname if you're using Weave networking
  15. #- servers=server {{ruby | container_hostname}}:3000;
  16. ruby:
  17. image: dchq/docker-rails:latest
  18. mem_min: 700m
  19. publish_all: false
  20. host: host1
  21. command: bin/rails server --port 3000 --binding 0.0.0.0
  22. plugins:
  23. - !plugin
  24. id: wbIQn
  25. restart: true
  26. environment:
  27. - POSTGRES_IP={{postgres|container_hostname}}
  28. - POSTGRES_USER={{postgres|POSTGRES_USER}}
  29. - POSTGRES_PASSWORD={{postgres|POSTGRES_PASSWORD}}
  30. - POSTGRES_DB={{postgres|POSTGRES_DB}}
  31. - REDIS_IP={{redis|container_private_ip}}
  32. redis:
  33. image: redis:latest
  34. mem_min: 200m
  35. host: host1
  36. memcache:
  37. image: memcached:latest
  38. mem_min: 200m
  39. host: host1
  40. postgres:
  41. image: postgres:latest
  42. mem_min: 400m
  43. host: host1
  44. environment:
  45. - POSTGRES_USER=postgres
  46. - POSTGRES_PASSWORD=postgres
  47. - POSTGRES_DB=starterkit_dev
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement