ЛР3 - БПИ2303 - Стругов - на 4
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user