Skip to content

Commit

Permalink
initial setup on docker file and package.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusmota committed Mar 7, 2019
1 parent 9244a55 commit 7438a20
Show file tree
Hide file tree
Showing 5 changed files with 3,084 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
npm-debug.log
Dockerfile
.dockerignore
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:10

WORKDIR /usr/app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 3000

CMD ["npm", "run", "dev"]
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3'
services:
app:
build: .
ports:
- '3000:3000'
env_file:
- .env
volumes:
- .:/usr/app
environment:
- NODE_ENV=DEV
- MONGODB_USER=${MONGODB_USER}
- MONGODB_PASSWORD=${MONGODB_PASSWORD}

Loading

0 comments on commit 7438a20

Please sign in to comment.