You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
595 B

#!/bin/bash
set -e
# 获取脚本所在目录的绝对路径并切换过去
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR"
if [ ! -f .env ]; then
cp .env.example .env
echo "Created .env from .env.example. Please edit .env and set TAILSCALE_IP."
fi
# Load TAILSCALE_IP for display (docker compose will load .env for itself)
set -a
[ -f .env ] && . .env
set +a
docker compose up -d
echo ""
echo "OneAPI LLM Gateway is running."
echo " Management UI: http://${TAILSCALE_IP:-<set TAILSCALE_IP in .env>}:3000"
echo " Default login: root / 123456"
echo ""