Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. db:
  5. image: postgres:9.6
  6. ports:
  7. - "5432"
  8. environment:
  9. POSTGRES_PASSWORD: postgres
  10. POSTGRES_USER: postgres
  11. volumes:
  12. - 'postgres:/var/lib/postgresql/data'
  13.  
  14. redis:
  15. image: redis:latest
  16. #command: redis-server --requirepass neM4toad
  17. ports:
  18. - "6379"
  19. volumes:
  20. - 'redis:/var/lib/redis/data'
  21.  
  22. app:
  23. build: .
  24. env_file: config/containers/env
  25. volumes:
  26. - .:/var/www/nemctl
  27. environment:
  28. RAILS_ENV: $RAILS_ENV
  29. ports:
  30. - "3000"
  31. depends_on:
  32. - db
  33. - redis
  34.  
  35. dj:
  36. build:
  37. context: .
  38. dockerfile: config/containers/dj/Dockerfile
  39. env_file: config/containers/env
  40. volumes:
  41. - .:/var/www/nemctl
  42. environment:
  43. RAILS_ENV: $RAILS_ENV
  44. depends_on:
  45. - db
  46. - redis
  47. - app
  48.  
  49. web:
  50. build:
  51. context: .
  52. dockerfile: config/containers/nginx/Dockerfile
  53. ports:
  54. - "81:80"
  55. depends_on:
  56. - app
  57. volumes_from:
  58. - app
  59.  
  60. # cable:
  61. # depends_on:
  62. # - 'redis'
  63. # build: .
  64. # env_file: config/containers/env
  65. # command: puma -p 28080 cable/config.ru
  66. # ports:
  67. # - '28080:28080'
  68. # volumes:
  69. # - .:/var/www/nemctl
  70.  
  71. volumes:
  72. redis:
  73. postgres:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement