Skip to content

Instantly share code, notes, and snippets.

@matthiasg
Created January 22, 2019 09:11
Show Gist options
  • Save matthiasg/af833110dfab913b7be56e051b3c659d to your computer and use it in GitHub Desktop.
Save matthiasg/af833110dfab913b7be56e051b3c659d to your computer and use it in GitHub Desktop.
docker-compose.yml for windows node development
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
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