Files
mtusi2026lab4/scripts/restart.sh
T
2026-10-15 20:45:29 +03:00

12 lines
346 B
Bash
Executable File

#!/bin/sh
set -eu
ROOT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
COMPOSE_BIN=${COMPOSE_BIN:-docker-compose}
cd "$ROOT_DIR"
"$COMPOSE_BIN" -f docker-compose.local.yaml restart postgres redis
"$COMPOSE_BIN" -f docker-compose.local.yaml up -d --wait postgres redis
"$COMPOSE_BIN" -f docker-compose.local.yaml up -d --force-recreate api