docker-shared.template.yml 1.1 KB

1234567891011121314151617181920212223242526272829
  1. version: "2"
  2. # We mount all the directories explicitly so that we are only mounting
  3. # the coffee directories, so that the compiled js is only written inside
  4. # the container, and not back to the local filesystem, where it would be
  5. # root owned, and conflict with working outside of the container.
  6. services:
  7. app:
  8. image: node:6.9.5
  9. volumes:
  10. - ./package.json:/app/package.json
  11. - ./npm-shrinkwrap.json:/app/npm-shrinkwrap.json
  12. - node_modules:/app/node_modules
  13. - ./bin:/app/bin
  14. - ./public/coffee:/app/public/coffee:ro
  15. - ./public/js/ace-1.2.5:/app/public/js/ace-1.2.5
  16. - ./app.coffee:/app/app.coffee:ro
  17. - ./app/coffee:/app/app/coffee:ro
  18. - ./app/templates:/app/app/templates:ro
  19. - ./app/views:/app/app/views:ro
  20. - ./config:/app/config
  21. - ./test/unit/coffee:/app/test/unit/coffee:ro
  22. - ./test/unit_frontend/coffee:/app/test/unit_frontend/coffee:ro
  23. - ./test/acceptance/coffee:/app/test/acceptance/coffee:ro
  24. - ./test/acceptance/files:/app/test/acceptance/files:ro
  25. - ./test/smoke/coffee:/app/test/smoke/coffee:ro
  26. MODULE_VOLUMES
  27. working_dir: /app