Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
7 changes: 7 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:lts-alpine3.13
WORKDIR /usr/src/backend

COPY . .
RUN npm install
RUN npm run build
CMD npm run start
31 changes: 31 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: '3'

services:
database:
image: postgres
container_name: database
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: "${DB_PASSWORD}"
POSTGRES_USER: "${DB_USERNAME}"
POSTGRES_DB: "${DB_NAME}"
volumes:
# - ./initdb.d:/docker-entrypoint-initdb.d
- ./db_data:/var/lib/postgresql/data

backend:
build: ./backend
container_name: backend
ports:
- "5000:5000"
env_file:
- ./backend/.env

frontend:
build: ./frontend
container_name: frontend
ports:
- "3000:3000"
env_file:
- ./frontend/.env
7 changes: 7 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:lts-alpine3.13
WORKDIR /usr/src/frontend

COPY . .
RUN npm install
RUN npm run build
CMD npm run start
3 changes: 0 additions & 3 deletions package-lock.json

This file was deleted.