@@ -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
|
||||
Executable
+8
@@ -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
|
||||
Reference in New Issue
Block a user