-
-
Save Luziberto/d955d794c2d212639f7c1684147d35b5 to your computer and use it in GitHub Desktop.
Docker Compose para Node.js
This file contains 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