Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. version: '2'
  2. services:
  3. vf_en:
  4. container_name: vf_en
  5. ports:
  6. - "80:80"
  7. - "441:443"
  8. build: ./value_focus_enterprise
  9. environment:
  10. - MCKINSEY_PROXY_SERVICE_HOST=bravos
  11. - MCKINSEY_PROXY_SERVICE_PORT=8000
  12.  
  13. vf_ma:
  14. container_name: vf_ma
  15. ports:
  16. - "82:80"
  17. - "442:443"
  18. build: ./value_focus_corporate
  19. environment:
  20. - MCKINSEY_PROXY_SERVICE_HOST=bravos
  21. - MCKINSEY_PROXY_SERVICE_PORT=8000
  22.  
  23. mulch-api:
  24. build: ./mulch_enterprise
  25. container_name: mulch-api
  26. depends_on:
  27. - mulch-db
  28. - restore-db
  29. volumes:
  30. - ./mulch_enterprise/app/:/mulch_enterprise/app
  31. ports:
  32. - "3051:3051" # we don't nee this
  33.  
  34. # Run the restore-db service to restore a backup of mongodb's contents from db/backup.
  35. # It will overwrite the data inside of mongodb
  36. #
  37. # Steps:
  38. # 1. Run: `$ docker-compose run --rm restore-db`
  39. restore-db:
  40. build: ./mulch_enterprise/app/db #remove later to higher lever
  41. command: /my_db/restore.sh
  42. container_name: restore-db
  43. depends_on:
  44. - mulch-db
  45. volumes:
  46. - ./mulch_enterprise/app/db/:/my_db/
  47.  
  48. mulch-db:
  49. container_name: mulch-db
  50. image: mongo:3.0
  51. command: mongod --smallfiles
  52. ports:
  53. - 27017:27017
  54.  
  55. bravos-ui:
  56. image: docker.mdl.cloud/canvas_applications/bravos-ui:latest
  57. container_name: bravos-ui
  58. env_file: .env
  59. environment:
  60. - AUTH0_DEV_MODE=false
  61. - API_PORT=8000
  62. - API_HOST=bravos
  63. ports:
  64. - 3000:80
  65. links:
  66. - bravos
  67.  
  68. bravos-api:
  69. image: docker.mdl.cloud/canvas/bravos-api:latest
  70. container_name: bravos-api
  71. volumes:
  72. - './bravos_api_seeds/seeds.rb:/app/db/seeds.rb'
  73. command: bundle exec "rake db:create db:migrate db:seed && rails s -p 8080"
  74. env_file: .env
  75. environment:
  76. - DISABLE_AUTH0=true
  77. restart: on-failure
  78. links:
  79. - postgres
  80.  
  81. bravos:
  82. image: docker.mdl.cloud/canvas/bravos:latest
  83. container_name: bravos
  84. env_file: .env
  85. environment:
  86. - BRAVOS_API_PORT=8080
  87. - BRAVOS_PORT=8000
  88. - BRAVOS_DEFAULT_USER=superuser
  89. - BRAVOS_FORWARD_PORT=0 #use the port valuse from PSQL
  90. restart: on-failure
  91. ports:
  92. - 8000:8000
  93. links:
  94. - postgres
  95. - bravos-api
  96.  
  97. postgres:
  98. image: postgres
  99. container_name: postgres
  100. environment:
  101. - POSTGRES_DB=bravos
  102. - POSTGRES_USER=postgres
  103. - POSTGRES_PASSWORD=postgres
  104. ports:
  105. - 5432:5432
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement