Untested dockerfile and compose

ref #1
This commit is contained in:
Nicolai Ort 2020-11-24 19:46:04 +01:00
parent 0dbac894a1
commit 36192ea5eb
2 changed files with 25 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM node:alpine
WORKDIR /app
COPY ./package.json ./
RUN npm i --prod
COPY ./ ./
ENTRYPOINT [ "yarn","dev" ]

19
docker-compose.yml Normal file
View File

@ -0,0 +1,19 @@
version: "3"
services:
backend_server:
build: .
ports:
- 4010:4010
environment:
DB_TYPE: postgres
DB_HOST: backend_db
DB_PORT: 5432
DB_USER: lfk
DB_PASSWORD: changeme
DB_NAME: lfk
backend_db:
image: postgres:11-alpine
environment:
POSTGRES_DB: lfk
POSTGRES_PASSWORD: changeme
POSTGRES_USER: lfk