docker-compose.yml 469 B

12345678910111213141516171819202122232425
  1. version: '2'
  2. services:
  3. database:
  4. logging:
  5. driver: none
  6. image: mongo:latest
  7. ports:
  8. - "27019:27017"
  9. environment:
  10. - MONGODB_USER="libreflix"
  11. - MONGODB_PASS="PASSWORD"
  12. libreflix:
  13. stdin_open: true
  14. build: .
  15. volumes:
  16. - ./:/libreflix
  17. - /libreflix/node_modules
  18. command: nodemon -e js,html,css server.js
  19. ports:
  20. - "3999:3999"
  21. links:
  22. - database