From 4bdc2e2497073b49dee047e633be0937b0adad8e Mon Sep 17 00:00:00 2001 From: leca Date: Wed, 29 Jan 2025 21:33:54 +0300 Subject: [PATCH] deployment instructions --- Dockerfile | 2 +- README.md | 8 +++++++- sample.env | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 692f044..9c5632c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM node:22-bullseye WORKDIR /opt/app -COPY package.json package-lock.json .env src eslint.config.mjs tsconfig.json db_schema.sql . +COPY package.json package-lock.json .env src eslint.config.mjs tsconfig.json db_schema.sql service-account-file.json . COPY src ./src RUN npm i diff --git a/README.md b/README.md index 96119df..55a71ed 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ -# IP-Molchan-job_interview +# Deployment +1. Copy ``sample.env`` to ``.env``. +2. Adjust it to your needs and enter spreadsheets IDs. + +4. Create file ``service-account-file.json`` that will contain data about Google API connection + +3. Run it with ``docker-compose up --build -d`` \ No newline at end of file diff --git a/sample.env b/sample.env index fc41d33..3c48141 100644 --- a/sample.env +++ b/sample.env @@ -1,4 +1,4 @@ -DB_HOST=localhost +DB_HOST=database DB_PORT=5432 DB_USER=api_user DB_NAME=api_db