Created
August 30, 2016 01:53
-
-
Save waldemarnt/fb3aefe20924b3f9dcae4af333b573e3 to your computer and use it in GitHub Desktop.
Docker and node.js docker-compose example
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' | |
services: | |
library: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
command: node_modules/.bin/nodemon --exec npm start | |
environment: | |
NODE_ENV: development | |
ports: | |
- 3000:3000 | |
volumes: | |
- .:/home/app/library | |
- /home/app/library/node_modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment