This commit is contained in:
Sergey Yarkov 2022-03-22 00:37:06 +03:00
parent 1a66780399
commit 9c127c4ee7
2 changed files with 23 additions and 0 deletions

View File

@ -1,8 +1,29 @@
# node-docker-example
## About
This app showcases a website built with NodeJS. The site has a set of
articles, each article has a separate page, all data about the article
is stored in the PostgreSQL database. Docker is used to deploy the
application.
## Folder structure
...
## How to deploy
```bash
# Clone
git clone https://github.com/sergeyyarkov/node-docker-example.git .
# Build
docker compose build
# Run
docker compose up
```
## Envitoment variables
...

View File

@ -38,6 +38,8 @@ services:
image: postgres:14
volumes:
- postgres_volume:/var/lib/postgresql/data
- ./sql/schema_init.sql:/docker-entrypoint-initdb.d/schema_init.sql
- ./sql/seed.sql:/docker-entrypoint-initdb.d/seed.sql
environment:
POSTGRES_USER: ${PG_USER}
POSTGRES_PASSWORD: ${PG_PASSWORD}