Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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