lab2
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-13 20:42:10 +03:00
parent 17377031cc
commit 3ed1c4e5b6
29 changed files with 2141 additions and 244 deletions
+7
View File
@@ -0,0 +1,7 @@
@echo off
rem Windows-вариант scripts/restart.sh (тот же порядок действий, volumes сохраняются)
cd /d "%~dp0.."
docker compose --env-file .env stop api || exit /b 1
docker compose --env-file .env restart postgres redis || exit /b 1
docker compose --env-file .env start api || exit /b 1
exit /b 0
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
# Перезапуск API и ВСЕХ используемых хранилищ (PostgreSQL, Redis) с сохранением volumes.
# Никаких down -v / flush / повторного seed.
set -eu
cd "$(dirname "$0")/.."
docker compose --env-file .env stop api
docker compose --env-file .env restart postgres redis
docker compose --env-file .env start api