Skip to content

Instantly share code, notes, and snippets.

@noqcks
Created May 11, 2018 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noqcks/e9608374f3e68a8fbd7cc708aba10de4 to your computer and use it in GitHub Desktop.
Save noqcks/e9608374f3e68a8fbd7cc708aba10de4 to your computer and use it in GitHub Desktop.
---
version: '3'
services:
node:
image: node:9
ports:
- 8002:8002
env_file: .env
volumes:
- ./:/usr/src/app:nocopy
- yarn-cache:/home/node/.cache/yarn
# http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html
# "The node_modules Volume Trick"
- ./node_modules:/usr/src/app/node_modules
- ./yarn.lock:/usr/src/app/yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment