docker-shared.template.yml 1.2 KB

123456789101112131415161718192021222324252627282930
  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/acceptance/coffee:/app/test/acceptance/coffee:ro
  26. - ./test/smoke/coffee:/app/test/smoke/coffee:ro
  27. MODULE_VOLUMES
  28. working_dir: /app