Skip to content

Instantly share code, notes, and snippets.

@SumonMSelim
Last active June 8, 2020 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SumonMSelim/384cfd334c1ad08e517e991ae618b979 to your computer and use it in GitHub Desktop.
Save SumonMSelim/384cfd334c1ad08e517e991ae618b979 to your computer and use it in GitHub Desktop.
docker with npm
version: "3.7"
services:
node:
build:
context: ./.docker/node
dockerfile: ./Dockerfile
command: bash -c "npm install && npm start"
container_name: app
ports:
- 3001:3001
- 3000:3000
volumes:
- ./:/home/app
environment:
PORT: 80
NODE_ENV: development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment