docker-shared.template.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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. # Copying the whole public dir is fine for now, and needed for
  15. # some unit tests to pass, but we will want to isolate the coffee
  16. # and vendor js files, so that the compiled js files are not written
  17. # back to the local filesystem.
  18. - ./public:/app/public
  19. - ./app.coffee:/app/app.coffee:ro
  20. - ./app/coffee:/app/app/coffee:ro
  21. - ./app/templates:/app/app/templates:ro
  22. - ./app/views:/app/app/views:ro
  23. - ./config:/app/config
  24. - ./test/unit/coffee:/app/test/unit/coffee:ro
  25. - ./test/unit_frontend/coffee:/app/test/unit_frontend/coffee:ro
  26. - ./test/acceptance/coffee:/app/test/acceptance/coffee:ro
  27. - ./test/acceptance/files:/app/test/acceptance/files:ro
  28. - ./test/smoke/coffee:/app/test/smoke/coffee:ro
  29. MODULE_VOLUMES
  30. working_dir: /app