Files
mtusi2026lab3-fork/scripts/restore.sh
T

9 lines
341 B
Bash
Executable File

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
docker compose up -d --scale api=2 --no-recreate api
# Explicitly start any stopped API container (Compose does not necessarily do so).
for id in $(docker compose ps -a -q api); do
if [ "$(docker inspect --format '{{.State.Running}}' "$id")" = false ]; then docker start "$id" >/dev/null; fi
done