release: v0.10.0 — Docker Compose и развёртывание без Docker

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shop
2026-05-17 09:42:13 +03:00
parent a4541cf266
commit 4248b649ed
4 changed files with 110 additions and 2 deletions
+61
View File
@@ -0,0 +1,61 @@
# Релиз 0.10.0
Интернет-магазин на Node.js + PostgreSQL 17.
## Вариант A — Docker Compose
```bash
git clone <URL_РЕПОЗИТОРИЯ> shop && cd shop
git checkout v0.10.0
cp .env.docker.example .env
# SESSION_SECRET=...
docker compose up -d --build
curl -s http://127.0.0.1:3000/health
```
Сайт: http://localhost:3000
С HTTPS (Caddy в контейнере):
```bash
# TRUST_PROXY=1 в .env, правьте caddy/Caddyfile.docker.example
docker compose --profile proxy up -d --build
```
## Вариант B — без Docker (Ubuntu)
```bash
git clone <URL_РЕПОЗИТОРИЯ> shop && cd shop
git checkout v0.10.0
apt install -y git curl
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt install -y nodejs postgresql-17 postgresql-client-17
bash scripts/setup-postgres-ubuntu.sh
cp .env.example .env
# DATABASE_URL, SESSION_SECRET, HOST=127.0.0.1, TRUST_PROXY=1
npm install --omit=dev
cp deploy/shop.service /etc/systemd/system/
systemctl daemon-reload && systemctl enable --now shop
curl -s http://127.0.0.1:3000/health
```
Caddy на хосте — см. `README.md`, раздел «Caddy».
## Обновление с более ранних версий
- С **SQLite**: раздел «Переход с SQLite на PostgreSQL 17» в README
- С **0.10-beta**: `git pull`, `npm install`, `systemctl restart shop`
## Тег
```bash
git fetch --tags
git checkout v0.10.0
```