forked from mtusi2026/mtusi2026lab2
Реализация на 4
This commit is contained in:
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
project_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
cd "$project_root"
|
||||
|
||||
if [ ! -d certs ]; then
|
||||
make key-gen
|
||||
fi
|
||||
|
||||
compose() {
|
||||
docker compose --env-file "${COMPOSE_ENV_FILE:-.env}" -f docker-compose.yml "$@"
|
||||
}
|
||||
|
||||
# Validate and build before stopping the API. Recreate containers to apply
|
||||
# current Compose settings, preserve named volumes, and wait for healthchecks.
|
||||
compose config --quiet
|
||||
compose build api
|
||||
compose stop api
|
||||
compose up -d --force-recreate --wait --wait-timeout 120 postgres redis
|
||||
compose up -d --no-build --pull never --force-recreate --wait --wait-timeout 60 api
|
||||
Reference in New Issue
Block a user