deployment instructions
This commit is contained in:
parent
ec7b733ff6
commit
4bdc2e2497
|
@ -2,7 +2,7 @@ FROM node:22-bullseye
|
||||||
|
|
||||||
WORKDIR /opt/app
|
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
|
COPY src ./src
|
||||||
|
|
||||||
RUN npm i
|
RUN npm i
|
||||||
|
|
|
@ -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``
|
|
@ -1,4 +1,4 @@
|
||||||
DB_HOST=localhost
|
DB_HOST=database
|
||||||
DB_PORT=5432
|
DB_PORT=5432
|
||||||
DB_USER=api_user
|
DB_USER=api_user
|
||||||
DB_NAME=api_db
|
DB_NAME=api_db
|
||||||
|
|
Loading…
Reference in New Issue