Skip to content

Commit

Permalink
dockerize
Browse files Browse the repository at this point in the history
  • Loading branch information
david-loe committed Dec 9, 2022
1 parent 5cc1082 commit 498811c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:10-alpine

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

CMD npm run migrate_local && npm run start
25 changes: 25 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
services:
app:
build:
context: .
dockerfile: Dockerfile
restart: always
depends_on:
- db
ports:
- ${PORT}:${PORT}
env_file:
- .env

db:
image: postgres
restart: always
volumes:
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=qUr&e95Gj1Sm*0o # URL-Encoded: qUr%26e95Gj1Sm%2A0o
- POSTGRES_DB=escapp_prod

volumes:
db_data:

0 comments on commit 498811c

Please sign in to comment.