Skip to content

Instantly share code, notes, and snippets.

@lucianobragaweb
Created December 16, 2019 11:21
Show Gist options
  • Save lucianobragaweb/136aa9832e44b3f6e39b282d1b0a2127 to your computer and use it in GitHub Desktop.
Save lucianobragaweb/136aa9832e44b3f6e39b282d1b0a2127 to your computer and use it in GitHub Desktop.
Docker Compose para Node.js
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