Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. version: '2.0'
  2.  
  3. services:
  4. quotes-hasher-service:
  5. container_name: quotes-hasher-service
  6. build: ../BackEnd/
  7. command: ./wait-for-it.sh quotes-mysql:3306 -t 60 -- bash -c 'npx nodemon index.js'
  8. volumes:
  9. - ../BackEnd:/home/node/app
  10. environment:
  11. - MYSQL_HOST=quotes-mysql
  12. - MYSQL_USER=root
  13. - MYSQL_PASSWORD=slpass
  14. - MYSQL_DB=Quotes
  15.  
  16. quotes-initializer:
  17. container_name: quotes-initializer
  18. image: mysql
  19. volumes:
  20. - ./scripts:/scripts
  21. command: /scripts/wait-for-it.sh quotes-mysql:3306 -t 60 -- bash -c 'mysql -h quotes-mysql -uroot -pslpass < /scripts/init_db.sql'
  22.  
  23. quotes-mysql:
  24. container_name: quotes-mysql
  25. image: mysql
  26. expose:
  27. - '3306'
  28. environment:
  29. - MYSQL_ROOT_PASSWORD=slpass
  30.  
  31. backend-for-frontend:
  32. container_name: quotes-backend-for-frontend
  33. command: ./scripts/wait-for-it.sh quotes-mysql:3306 -t 60 -- bash -c 'npx nodemon index.js'
  34. volumes:
  35. - ./:/home/node/app/
  36. build: .
  37. ports:
  38. - '3001:3001'
  39. environment:
  40. - MYSQL_HOST=quotes-mysql
  41. - MYSQL_USER=root
  42. - MYSQL_PASSWORD=slpass
  43. - MYSQL_DB=Quotes
  44. - PORT=3001
  45.  
  46. quotes-data-filler:
  47. container_name: quotes-data-filler
  48. command: ./wait-for-it.sh quotes-mysql:3306 -t 60 -- bash -c 'sleep 20 && yarn start'
  49. build: ../DataFiller/
  50. environment:
  51. - MYSQL_HOST=quotes-mysql
  52. - MYSQL_USER=root
  53. - MYSQL_PASSWORD=slpass
  54. - MYSQL_DB=Quotes
  55.  
  56. quotes-message-queue:
  57. container_name: quotes-message-queue
  58. image: rabbitmq
  59. expose:
  60. - '5672'
  61. hostname: quotes-rabbitmq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement