Created
January 22, 2019 09:11
-
-
Save matthiasg/af833110dfab913b7be56e051b3c659d to your computer and use it in GitHub Desktop.
docker-compose.yml for windows node development
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: '2' | |
volumes: | |
node_modules: | |
services: | |
base: | |
image: node:10 | |
volumes: | |
- .:/usr/src/service | |
- node_modules:/usr/src/service/node_modules | |
working_dir: /usr/src/service | |
install: | |
extends: | |
service: base | |
command: npm install | |
build: | |
extends: | |
service: base | |
command: npm run build |
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' | |
volumes: | |
node_modules: | |
services: | |
dev: | |
image: node:10 | |
volumes: | |
- .:/usr/src/service | |
- node_modules:/usr/src/service/node_modules | |
working_dir: /usr/src/service | |
command: npm run dev | |
ports: | |
- 8080:8080 | |
- 9229:9229 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment