Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. version: '2'
  2. services:
  3. db:
  4. image: postgres:9.5.1
  5. environment:
  6. POSTGRES_USER: "fopify"
  7. POSTGRES_PASSWORD: "Fopify*!"
  8. POSTGRES_DB: 'fopify'
  9. ports:
  10. - '5432:5432'
  11. redis:
  12. image: redis:3.2-alpine
  13. ports:
  14. - "6379:6379"
  15. web:
  16. extends:
  17. file: common_services.yml
  18. service: fopify
  19. command: bundle exec rails s -p 8000 -b0.0.0.0
  20. environment:
  21. REDIS_URL: 'redis://redis:6379/0'
  22. ports:
  23. - '8000:8000'
  24. depends_on:
  25. - db
  26. - redis
  27. worker:
  28. extends:
  29. file: common_services.yml
  30. service: fopify
  31. command: sidekiq -C config/sidekiq.yml
  32. environment:
  33. REDIS_URL: 'redis://redis:6379/0'
  34. volumes_from:
  35. - web
  36. depends_on:
  37. - web
  38. faye:
  39. extends:
  40. file: common_services.yml
  41. service: fopify
  42. command: bundle exec thin start -R faye.ru -e production -p 9292
  43. volumes_from:
  44. - web
  45. ports:
  46. - "9292:9292"
  47. depends_on:
  48. - web
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement