Advertisement
Guest User

Untitled

a guest
Sep 14th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. version: '3'
  2. services:
  3. server:
  4. build:
  5. context: ./server/
  6. ## TODO: change this so that it matches kubernetes environment
  7. user: root
  8. command: /usr/app/node_modules/.bin/nodemon src/server.js
  9. volumes:
  10. - ./server/:/usr/app
  11. - /usr/app/node_modules
  12. ports:
  13. - "8080:8080"
  14. links:
  15. - database
  16. env_file:
  17. - .env
  18. environment:
  19. - NODE_ENV=development
  20. - CHOKIDAR_USEPOLLING=true
  21. - DATABASE_URL=postgres://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}/${DB_NAME}
  22.  
  23. database:
  24. image: postgres:10
  25. ports:
  26. - 5432
  27. env_file:
  28. - .env
  29. environment:
  30. DB_USERNAME: ${DB_USERNAME}
  31. DB_PASSWORD: ${DB_PASSWORD}
  32. DB_NAME: ${DB_NAME}
  33.  
  34. client:
  35. build:
  36. context: ./client/
  37. user: root
  38. command: npm start
  39. volumes:
  40. - ./client/:/usr/app
  41. - /usr/app/node_modules
  42. depends_on:
  43. - server
  44. ports:
  45. - "3000:3000"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement