Skip to content

Commit

Permalink
Merge 87604ee into ffe84db
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheza-Dzabala committed Oct 3, 2019
2 parents ffe84db + 87604ee commit 12f60ad
Show file tree
Hide file tree
Showing 7 changed files with 847 additions and 1,065 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,7 @@ typings/
# End of https://www.gitignore.io/api/node

# Coveralls
.coveralls.yml
.coveralls.yml

# Docker files
pgdata
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"eslint.options": {
"env":{
"es6":true
},
"parserOptions": {
"ecmaVersion": 6 // or 7,8,9
}
}
}
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:11-alpine

RUN mkdir -p /usr/src/app

WORKDIR /usr/src/app

COPY . .

RUN npm install

EXPOSE 3000

CMD ["npm", "run", "dev"]
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3.3'
services:
db:
image: postgres
environment:
- POSTGRES_USER:${POSTGRES_USER}
- POSTGRES_PASSWORD:${POSTGRES_PASSWORD}
- POSTGRES_DB:${POSTGRES_DB}
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- "54320:5432"

api:
image: barefoot-nomad-api
depends_on:
- db
build: .
ports:
- "3000:3000"
volumes:
- ./:/usr/src/app
Loading

0 comments on commit 12f60ad

Please sign in to comment.