feat(deploy): add docker

This commit is contained in:
2026-02-11 16:30:54 +08:00
parent 03a1e6043d
commit d44a69bdaa
9 changed files with 230 additions and 27 deletions

17
deploy/docker/start.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/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."