Enhance multi-tenant support: update scripts to handle multi-tenant Docker compose files and secure admin credentials

This commit is contained in:
2026-04-21 16:57:43 +02:00
parent 12f62e5146
commit 9ae316cdd9
4 changed files with 30 additions and 8 deletions
+15 -1
View File
@@ -4,12 +4,26 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
COMPOSE_FILE="docker-compose.yml"
while [[ $# -gt 0 ]]; do
case "$1" in
--multitenant)
COMPOSE_FILE="docker-compose-multitenant.yml"
shift
;;
*)
shift
;;
esac
done
if ! command -v docker >/dev/null 2>&1; then
echo "Error: docker command not found. Install Docker first."
exit 1
fi
echo "Stopping Inventarsystem Docker stack..."
docker compose down
docker compose -f "$COMPOSE_FILE" down
echo "Stack stopped."