Skip to content

Instantly share code, notes, and snippets.

@waldemarnt
Created August 30, 2016 01:53
Show Gist options
  • Save waldemarnt/fb3aefe20924b3f9dcae4af333b573e3 to your computer and use it in GitHub Desktop.
Save waldemarnt/fb3aefe20924b3f9dcae4af333b573e3 to your computer and use it in GitHub Desktop.
Docker and node.js docker-compose example
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