lab3: итог

This commit is contained in:
2026-10-16 16:18:15 +03:00
parent 6cced49486
commit e42f02c016
141 changed files with 3180 additions and 4753 deletions
+8 -3
View File
@@ -10,7 +10,12 @@ replicas="${API_REPLICAS:-}"
if [ -z "$replicas" ] && [ -f "$env_file" ]; then
replicas=$(sed -n 's/^API_REPLICAS=//p' "$env_file" | tail -n 1)
fi
if [ -z "$replicas" ] && [ -f .env.stand ]; then
replicas=$(sed -n 's/^API_REPLICAS=//p' .env.stand | tail -n 1)
fi
replicas="${replicas:-2}"
exec docker compose --env-file "$env_file" up -d --no-deps \
--scale "api=${replicas}" api
set -- --env-file "$env_file"
if [ -f .env.stand ]; then
set -- "$@" --env-file .env.stand
fi
exec docker compose "$@" up -d --no-deps --scale "api=${replicas}" api