Guest User

Untitled

a guest
Feb 16th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. # Run `docker-compose build` to build the images
  2. # Run `docker-compose up` to run the containers
  3. # Run `docker-compose down` to remove the containers
  4. version: '3.5'
  5. services:
  6. mysql:
  7. container_name: service_mysql
  8. image: mysql:5.7
  9. volumes:
  10. - ~/datadir/mysql:/var/lib/mysql
  11. ports:
  12. - 3306:3306
  13. - 33060:33060
  14. environment:
  15. MYSQL_ROOT_PASSWORD: root
  16. networks:
  17. - service_network
  18. redis:
  19. container_name: service_redis
  20. image: redis:4.0
  21. volumes:
  22. - ~/datadir/redis:/var/lib/redis
  23. ports:
  24. - 6379:6379
  25. networks:
  26. - service_network
  27. api:
  28. container_name: service_api
  29. build: ./apiapp/
  30. image: service_api
  31. volumes:
  32. - ./apiapp/:/usr/src/app
  33. - /usr/src/app/node_modules
  34. ports:
  35. - 3000:3000
  36. - 9229:9229
  37. depends_on:
  38. - mysql
  39. - redis
  40. - notification
  41. networks:
  42. - service_network
  43. app2:
  44. build: ./notification/
  45. image: service_notification
  46. container_name: service_notify
  47. environment:
  48. - NODE_ENV=local
  49. volumes:
  50. - ./notification/:/usr/src/app
  51. - /usr/src/app/node_modules
  52. ports:
  53. - 4000:4000 # Notification api port
  54. - 9223:9223 # Node debugg port
  55. - 8099:8099 # GRPC port
  56. depends_on:
  57. - mysql
  58. networks:
  59. - service_network
  60. networks:
  61. service_network:
  62. driver: bridge
  63. name: service_network
Add Comment
Please, Sign In to add comment