Files
iam-front/deploy/docker/start.sh
2026-02-11 16:30:54 +08:00

18 lines
496 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${SCRIPT_DIR}"
# 1. Validate environment
export DEPLOY_TARGET=docker
bash ../validate-env.sh
# 2. Start
echo "Starting iam-front..."
# Removed --remove-orphans to prevent deleting containers from other compose projects
# if they share the same project name (which defaults to folder name "docker")
docker compose --env-file ../../.env -p iam-front up -d --build
echo "iam-front is running."