feat(deploy): add docker
This commit is contained in:
17
deploy/docker/start.sh
Executable file
17
deploy/docker/start.sh
Executable 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."
|
||||
Reference in New Issue
Block a user