106 lines
4.2 KiB
Plaintext
106 lines
4.2 KiB
Plaintext
# =============================================================================
|
|
# Sim - AI Agent Workflow Builder Configuration
|
|
# =============================================================================
|
|
# Documentation: https://docs.sim.ai
|
|
# GitHub: https://github.com/simstudioai/sim
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Time Zone Configuration
|
|
# -----------------------------------------------------------------------------
|
|
TZ=UTC
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Image Versions
|
|
# -----------------------------------------------------------------------------
|
|
SIM_VERSION=latest
|
|
SIM_REALTIME_VERSION=latest
|
|
SIM_MIGRATIONS_VERSION=latest
|
|
PGVECTOR_VERSION=pg17
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Global Registry (optional, e.g., mirror.example.com/)
|
|
# -----------------------------------------------------------------------------
|
|
# GLOBAL_REGISTRY=
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Port Overrides
|
|
# -----------------------------------------------------------------------------
|
|
SIM_PORT_OVERRIDE=3000
|
|
SIM_REALTIME_PORT_OVERRIDE=3002
|
|
POSTGRES_PORT_OVERRIDE=5432
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Application Configuration
|
|
# -----------------------------------------------------------------------------
|
|
NODE_ENV=production
|
|
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
|
BETTER_AUTH_URL=http://localhost:3000
|
|
SOCKET_SERVER_URL=http://localhost:3002
|
|
NEXT_PUBLIC_SOCKET_URL=http://localhost:3002
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Security Secrets (REQUIRED: Generate secure values in production)
|
|
# -----------------------------------------------------------------------------
|
|
# Generate with: openssl rand -hex 32
|
|
BETTER_AUTH_SECRET=your_auth_secret_here
|
|
ENCRYPTION_KEY=your_encryption_key_here
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# API Keys (Optional)
|
|
# -----------------------------------------------------------------------------
|
|
# COPILOT_API_KEY=
|
|
# SIM_AGENT_API_URL=
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Ollama Configuration
|
|
# -----------------------------------------------------------------------------
|
|
# For external Ollama on host machine:
|
|
# - macOS/Windows: http://host.docker.internal:11434
|
|
# - Linux: http://YOUR_HOST_IP:11434 (e.g., http://192.168.1.100:11434)
|
|
OLLAMA_URL=http://localhost:11434
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# PostgreSQL Configuration
|
|
# -----------------------------------------------------------------------------
|
|
POSTGRES_USER=postgres
|
|
POSTGRES_PASSWORD=postgres
|
|
POSTGRES_DB=simstudio
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Resource Limits - Main Application
|
|
# -----------------------------------------------------------------------------
|
|
SIM_CPU_LIMIT=4.0
|
|
SIM_CPU_RESERVATION=2.0
|
|
SIM_MEMORY_LIMIT=8G
|
|
SIM_MEMORY_RESERVATION=4G
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Resource Limits - Realtime Server
|
|
# -----------------------------------------------------------------------------
|
|
SIM_REALTIME_CPU_LIMIT=2.0
|
|
SIM_REALTIME_CPU_RESERVATION=1.0
|
|
SIM_REALTIME_MEMORY_LIMIT=4G
|
|
SIM_REALTIME_MEMORY_RESERVATION=2G
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Resource Limits - Database Migrations
|
|
# -----------------------------------------------------------------------------
|
|
SIM_MIGRATIONS_CPU_LIMIT=1.0
|
|
SIM_MIGRATIONS_CPU_RESERVATION=0.5
|
|
SIM_MIGRATIONS_MEMORY_LIMIT=512M
|
|
SIM_MIGRATIONS_MEMORY_RESERVATION=256M
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Resource Limits - PostgreSQL
|
|
# -----------------------------------------------------------------------------
|
|
POSTGRES_CPU_LIMIT=2.0
|
|
POSTGRES_CPU_RESERVATION=1.0
|
|
POSTGRES_MEMORY_LIMIT=2G
|
|
POSTGRES_MEMORY_RESERVATION=1G
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Logging Configuration
|
|
# -----------------------------------------------------------------------------
|
|
LOG_MAX_SIZE=100m
|
|
LOG_MAX_FILE=3
|