Выполение лабораторной 2

This commit is contained in:
2026-10-24 20:44:30 +03:00
parent 65003b6119
commit 5bba1f6cff
31 changed files with 1481 additions and 15 deletions
+8
View File
@@ -0,0 +1,8 @@
@echo off
cd /d "%~dp0.."
if not exist .env (
echo restart.cmd: .env is missing ^(copy .env.example and fill it^) 1>&2
exit /b 1
)
docker compose --env-file .env restart
exit /b %ERRORLEVEL%
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
if [ ! -f .env ]; then
echo "restart.sh: .env is missing (copy .env.example and fill it)" >&2
exit 1
fi
docker compose --env-file .env restart