Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kseen715/yaterochka-psql
https://github.com/kseen715/yaterochka-psql
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kseen715/yaterochka-psql
- Owner: Kseen715
- License: mit
- Created: 2023-12-24T15:25:57.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-01-04T15:25:04.000Z (10 months ago)
- Last Synced: 2024-01-04T16:35:17.461Z (10 months ago)
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YaTёrochka-psql
## Description
This is PostgreSQL part of [YaTёrochka project](https://github.com/Kseen715/yaterochka). It's a web application written as a course work for the 3rd year of study at the university.The project is a web application for a fictional company that sells random goods. The application allows you to view the catalog of goods, view the history of orders, and also allows you to log in to your Admin account.
## Usage
Docker-compose:
```
version: '3'
services:
yaterochka-psql:
container_name: yaterochka-psql
image: kseen/yaterochka-psql:latest
command:
- "sh"
- "./run.sh"
environment:
POSTGRES_DB:
POSTGRES_USER:
POSTGRES_PASSWORD:
PGDATA: "/var/lib/postgresql/data/pgdata"
volumes:
- /mnt/d/ydb/yat-db-init:/docker-entrypoint-initdb.d # PostgreSQL entrypoint path
- /mnt/d/ydb/yat-db:/var/lib/postgresql/data # PostgreSQL data path
ports:
- "5433:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -d postgres" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
deploy:
resources:
limits:
cpus: '1'
memory: 4G
```