Guest User

Untitled

a guest
Jul 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. ** docker-compose.yml **
  2. services:
  3. fpm:
  4. build:
  5. context: ./docker/php
  6. image: fpm:latest
  7.  
  8. webpack:
  9. build: ./docker/webpack
  10. links:
  11. - fpm
  12. ports:
  13. - 3000:3000
  14. command: npm run server
  15.  
  16.  
  17. ** webpack.config.js **
  18. output: {
  19. filename: '[name].js',
  20. publicPath: WEB_ROOT,
  21. path: PATH_ROOT
  22. },
  23. devServer: {
  24. hot: true,
  25. inline: true,
  26. host: '0.0.0.0',
  27. port: 3000,
  28. contentBase: PATH_ROOT,
  29. proxy: {
  30. '/./': {
  31. target: 'fpm:9000',
  32. secure:
  33. }
  34. },
  35. },
  36.  
  37. ** docker-compose.yml **
  38. fpm:
  39. build:
  40. context: ./docker/php
  41. image: fpm:latest
  42. links:
  43. - webpack
  44.  
  45. ** webpack.config.js **
  46. output: {
  47. filename: '[name].js',
  48. publicPath: 'https://localhost:3000/public/',
  49. path: PATH_ROOT
  50. },
  51. devServer: {
  52. hot: true,
  53. inline: true,
  54. host: '0.0.0.0',
  55. publicPath: 'https://localhost:3000/public/',
  56. },
Add Comment
Please, Sign In to add comment