# Global Settings
GLOBAL_REGISTRY=
TZ=UTC

# Opik Version
OPIK_VERSION=1.11.9

# Opik Frontend Port
OPIK_PORT_OVERRIDE=5173
OPIK_BACKEND_PORT_OVERRIDE=3003

# MySQL Configuration
MYSQL_VERSION=8.4.2
MYSQL_ROOT_PASSWORD=opik
MYSQL_DATABASE=opik
MYSQL_USER=opik
MYSQL_PASSWORD=opik

# Redis Configuration
REDIS_VERSION=7.2.4-alpine3.19
REDIS_PASSWORD=opik

# ClickHouse Configuration
CLICKHOUSE_VERSION=25.3.6.56-alpine
CLICKHOUSE_DB=opik
CLICKHOUSE_USER=opik
CLICKHOUSE_PASSWORD=opik

# ZooKeeper Configuration
ZOOKEEPER_VERSION=3.9.4

# MinIO Configuration
MINIO_VERSION=RELEASE.2025-03-12T18-04-18Z
MINIO_MC_VERSION=RELEASE.2025-03-12T17-29-24Z
MINIO_ROOT_USER=opikminio
MINIO_ROOT_PASSWORD=opikminio123
MINIO_PORT_OVERRIDE=9000
MINIO_CONSOLE_PORT_OVERRIDE=9090

# Alpine Version (for init containers)
ALPINE_VERSION=latest

# Opik Feature Toggles
OPIK_USAGE_REPORT_ENABLED=true
TOGGLE_OPIK_AI_ENABLED=false
TOGGLE_GUARDRAILS_ENABLED=false
TOGGLE_WELCOME_WIZARD_ENABLED=true
CORS=false

# Attachment Settings
ATTACHMENTS_STRIP_MIN_SIZE=256000
JACKSON_MAX_STRING_LENGTH=104857600

# Python Backend Configuration
PYTHON_BACKEND_PORT=8000
PYTHON_CODE_EXECUTOR_STRATEGY=process
PYTHON_CODE_EXECUTOR_CONTAINERS_NUM=5
PYTHON_CODE_EXECUTOR_EXEC_TIMEOUT_IN_SECS=3
PYTHON_CODE_EXECUTOR_ALLOW_NETWORK=false
PYTHON_CODE_EXECUTOR_CPU_SHARES=512
PYTHON_CODE_EXECUTOR_MEM_LIMIT=256m

# Optimization Studio Settings
OPTSTUDIO_MAX_CONCURRENT_JOBS=5
OPTSTUDIO_LOG_LEVEL=INFO
OPTSTUDIO_LLM_MAX_TOKENS=8192

# RQ Worker Settings
RQ_WORKER_ENABLED=true
RQ_WORKER_TTL_FAILURE=86400

# LLM API Keys (Optional - for AI features)
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
OPENROUTER_API_KEY=

# Nginx Configuration
NGINX_PORT=5173
NGINX_CONF_SUFFIX=local

# Resource Limits - MySQL
MYSQL_CPU_LIMIT=1.0
MYSQL_MEMORY_LIMIT=1G
MYSQL_CPU_RESERVATION=0.1
MYSQL_MEMORY_RESERVATION=512M

# Resource Limits - Redis
REDIS_CPU_LIMIT=0.5
REDIS_MEMORY_LIMIT=512M
REDIS_CPU_RESERVATION=0.1
REDIS_MEMORY_RESERVATION=256M

# Resource Limits - ZooKeeper
ZOOKEEPER_CPU_LIMIT=0.5
ZOOKEEPER_MEMORY_LIMIT=1G
ZOOKEEPER_CPU_RESERVATION=0.1
ZOOKEEPER_MEMORY_RESERVATION=512M

# Resource Limits - ClickHouse
CLICKHOUSE_CPU_LIMIT=2.0
CLICKHOUSE_MEMORY_LIMIT=4G
CLICKHOUSE_CPU_RESERVATION=0.1
CLICKHOUSE_MEMORY_RESERVATION=1G

# Resource Limits - MinIO
MINIO_CPU_LIMIT=1.0
MINIO_MEMORY_LIMIT=1G
MINIO_CPU_RESERVATION=0.1
MINIO_MEMORY_RESERVATION=512M

# Resource Limits - Backend
BACKEND_CPU_LIMIT=2.0
BACKEND_MEMORY_LIMIT=2G
BACKEND_CPU_RESERVATION=0.1
BACKEND_MEMORY_RESERVATION=1G

# Resource Limits - Python Backend
PYTHON_BACKEND_CPU_LIMIT=1.0
PYTHON_BACKEND_MEMORY_LIMIT=1G
PYTHON_BACKEND_CPU_RESERVATION=0.1
PYTHON_BACKEND_MEMORY_RESERVATION=512M

# Resource Limits - Frontend
FRONTEND_CPU_LIMIT=0.5
FRONTEND_MEMORY_LIMIT=512M
FRONTEND_CPU_RESERVATION=0.1
FRONTEND_MEMORY_RESERVATION=256M