Last active
December 26, 2018 16:07
-
-
Save knrt10/d7a9f56d44e1fc25c0c2b332ca9d889d to your computer and use it in GitHub Desktop.
A simple YML for docker setup
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' | |
| 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