Skip to content

Instantly share code, notes, and snippets.

@knrt10
Last active December 26, 2018 16:07
Show Gist options
  • Select an option

  • Save knrt10/d7a9f56d44e1fc25c0c2b332ca9d889d to your computer and use it in GitHub Desktop.

Select an option

Save knrt10/d7a9f56d44e1fc25c0c2b332ca9d889d to your computer and use it in GitHub Desktop.
A simple YML for docker setup
version: '3'
services:
web:
build: .
command: npm run dev
volumes:
- .:/usr/src/
- /usr/src/node_modules
ports:
- "3000:3000"
depends_on:
- mongodb
mongodb:
image: mongo
ports:
- "27017:27017"
volumes:
- ./data:/data/db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment