Added deployment files

This commit is contained in:
Oleksandr Prokhorenko
2026-09-24 23:09:44 +03:00
parent 7f3a56a4ca
commit c345a8e91f
14 changed files with 402 additions and 5 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail
repo_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
env_file=${MERCHANTFLOW_ENV_FILE:-/opt/merchantflow/production.env}
if [[ ! -r "$env_file" ]]; then
echo "Missing production configuration: $env_file (run deploy/init-env.sh first)" >&2
exit 1
fi
# Use an explicit file so the local development .env is never loaded by Compose.
exec docker compose --project-name "${MERCHANTFLOW_PROJECT:-merchantflow}" \
--env-file "$env_file" -f "$repo_dir/compose.production.yaml" "$@"