Railway
ワンクリックデプロイメントで自動的にPostgreSQLをプロビジョニングします。
[
](https://railway.com/new/template/sim-studio)
デプロイ後、Railwayダッシュボードで環境変数を追加してください:
BETTER_AUTH_SECRET,ENCRYPTION_KEY,INTERNAL_API_SECRET(自動生成)OPENAI_API_KEYまたは他のAIプロバイダーキー- 設定 → ネットワーキングでカスタムドメイン
VPSデプロイメント
DigitalOcean、AWS EC2、Azure VMsまたは任意のLinuxサーバー向け:
推奨: 16 GB RAMドロップレット、Ubuntu 24.04
# Create Droplet via console, then SSH in
ssh root@your-droplet-ip推奨: t3.xlarge (16 GB RAM)、Ubuntu 24.04
ssh -i your-key.pem ubuntu@your-ec2-ip推奨: Standard_D4s_v3 (16 GB RAM)、Ubuntu 24.04
ssh azureuser@your-vm-ipDockerのインストール
# Install Docker (official method)
curl -fsSL https://get.docker.com | sudo sh
sudo usermod -aG docker $USER
# Logout and reconnect, then verify
docker --versionSim Studioのデプロイ
git clone https://github.com/simstudioai/sim.git && cd sim
# Create .env with secrets
cat > .env << EOF
DATABASE_URL=postgresql://postgres:postgres@db:5432/simstudio
BETTER_AUTH_SECRET=$(openssl rand -hex 32)
ENCRYPTION_KEY=$(openssl rand -hex 32)
INTERNAL_API_SECRET=$(openssl rand -hex 32)
NEXT_PUBLIC_APP_URL=https://sim.yourdomain.com
BETTER_AUTH_URL=https://sim.yourdomain.com
NEXT_PUBLIC_SOCKET_URL=https://sim.yourdomain.com
EOF
# Start
docker compose -f docker-compose.prod.yml up -dCaddyによるSSL
# Install Caddy
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update && sudo apt install caddy
# Configure (replace domain)
echo 'sim.yourdomain.com {
reverse_proxy localhost:3000
handle /socket.io/* {
reverse_proxy localhost:3002
}
}' | sudo tee /etc/caddy/Caddyfile
sudo systemctl restart caddyドメインのDNS AレコードをサーバーのIPアドレスに向けてください。
Kubernetes (EKS, AKS, GKE)
KubernetesガイドでマネージドKubernetesへのHelmデプロイメントについて確認してください。
マネージドデータベース(オプション)
本番環境では、マネージドPostgreSQLサービスを使用してください:
- AWS RDS / Azure Database / Cloud SQL - pgvector拡張機能を有効化
- Supabase / Neon - pgvector搭載済み
環境にDATABASE_URLを設定してください:
DATABASE_URL="postgresql://user:pass@host:5432/db?sslmode=require"