Skip to content

Commit

Permalink
Merge 3192018 into fe55f66
Browse files Browse the repository at this point in the history
  • Loading branch information
Niyitangasam committed May 27, 2019
2 parents fe55f66 + 3192018 commit 64a70ff
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules

.nyc_output
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ package-lock.json
yarn.lock
# dot env file
.env

postgres-data
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:10
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
EXPOSE 3000
CMD [ "npm", "start" ]
39 changes: 39 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: "3"
services:
db:
image: postgres
restart: always
volumes:
- "./postgres-data:/var/lib/postgresql/data"
ports:
- ${DB_PORT}:${DB_PORT}
environment:
- POSTGRES_DB= ${DB_NAME}
- POSTGRES_USER= ${DB_USER}
- POSTGRES_PASSWORD= ${DB_PASSWORD}
server:
build: .
restart: always
depends_on:
- db
ports:
- 3000:3000
environment:
- BASE_URL= ${BASE_URL}
- DB_HOST=db
- DB_USER= ${DB_USER}
- DB_NAME= ${DB_NAME}
- DB_PASSWORD= ${DB_PASSWORD}
- DB_PORT=5432
- DB_PORT= ${DB_PORT}
- TESTDB_NAME= ${TESTDB_NAME}
- SECRET= ${SECRET}
- FACEBOOK_APP_ID= ${FACEBOOK_APP_ID}
- FACEBOOK_APP_SECRET= ${FACEBOOK_APP_SECRET}
- GOOGLE_CLIENT_ID= ${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET= ${GOOGLE_CLIENT_SECRET}
- TWITTER_CONSUMER_KEY= ${TWITTER_CONSUMER_KEY}
- TWITTER_CONSUMER_SECRET= ${TWITTER_CONSUMER_SECRET}
- APP_EMAIL= ${APP_EMAIL}
- APP_LINK= ${APP_LINK}
- SENDGRID_API_KEY= ${SENDGRID_API_KEY}

0 comments on commit 64a70ff

Please sign in to comment.