-
-
Save felladrin/1ae334aab5b87757dbd9b7695079561a to your computer and use it in GitHub Desktop.
Docker Compose configuration for running a Node app in a container
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
| PORT=5000 |
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.7" | |
| services: | |
| node: | |
| image: node:12-slim | |
| command: sh -c "npm i && npm run dev" | |
| user: node | |
| working_dir: /home/node/app | |
| volumes: | |
| - .:/home/node/app | |
| ports: | |
| - "${PORT}:${PORT}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment