Created
May 11, 2018 22:08
-
-
Save noqcks/e9608374f3e68a8fbd7cc708aba10de4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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