Created
December 16, 2019 11:21
-
-
Save lucianobragaweb/136aa9832e44b3f6e39b282d1b0a2127 to your computer and use it in GitHub Desktop.
Docker Compose para Node.js
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: | |
node: | |
image: "node:12" | |
working_dir: /app | |
volumes: | |
- ./:/app | |
expose: | |
- "8080" | |
ports: | |
- "8080:8080" | |
command: > | |
sh -c "npm i && npm start" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment