Guest User

Untitled

a guest
Mar 2nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. version: '3.3'
  2.  
  3. services:
  4. app:
  5. depends_on:
  6. - 'postgres'
  7. - 'redis'
  8. build: .
  9. entrypoint: './docker-entrypoint.sh'
  10. command: puma -C config/puma.rb
  11. ports:
  12. - '3000:3000'
  13. volumes:
  14. - 'bundle_cache:/bundle'
  15. - '.:/app'
  16. env_file:
  17. - '.env'
  18.  
  19. postgres:
  20. image: 'postgres:9.6-alpine'
  21. environment:
  22. POSTGRES_USER: 'postgres'
  23. POSTGRES_PASSWORD: 'supersecret'
  24. ports:
  25. - '5432:5432'
  26. volumes:
  27. - 'postgres:/var/lib/postgresql/data'
  28.  
  29. redis:
  30. image: 'redis:3.2-alpine'
  31. command: redis-server --requirepass supersecret
  32. ports:
  33. - '6379:6379'
  34. volumes:
  35. - 'redis:/data'
  36.  
  37. sidekiq:
  38. depends_on:
  39. - 'postgres'
  40. - 'redis'
  41. build: .
  42. command: sidekiq -C config/sidekiq.yml.erb
  43. volumes:
  44. - 'bundle_cache:/bundle'
  45. - '.:/app'
  46. env_file:
  47. - '.env'
  48.  
  49. cable:
  50. depends_on:
  51. - 'redis'
  52. build: .
  53. command: puma -p 28080 cable/config.ru
  54. ports:
  55. - '28080:28080'
  56. volumes:
  57. - 'bundle_cache:/bundle'
  58. - '.:/app'
  59. env_file:
  60. - '.env'
  61.  
  62. volumes:
  63. redis:
  64. postgres:
  65. bundle_cache:
Add Comment
Please, Sign In to add comment