mirror of
https://github.com/turnstonelabs/turnstone.git
synced 2026-08-12 23:12:23 -06:00
2a05ba5915
* fix: standardize database env vars on TURNSTONE_DB_* naming compose.yaml used DB_BACKEND/DATABASE_URL in .env which got mapped to TURNSTONE_DB_BACKEND/TURNSTONE_DB_URL inside containers. Running bare- metal required the TURNSTONE_ prefix, but docs didn't explain this. Eliminate the indirection — use TURNSTONE_DB_BACKEND and TURNSTONE_DB_URL everywhere (compose, .env, bare-metal, docs, bootstrap wizard). * fix: update .env.example to use TURNSTONE_DB_* naming
50 lines
2.1 KiB
Bash
50 lines
2.1 KiB
Bash
# =============================================================================
|
|
# Turnstone Environment Variables
|
|
# Copy to .env and adjust values for your deployment.
|
|
#
|
|
# Usage:
|
|
# Single node: docker compose --profile production up
|
|
# 10-node cluster: docker compose --profile cluster up
|
|
# =============================================================================
|
|
|
|
# -- LLM Backend --------------------------------------------------------------
|
|
LLM_BASE_URL=http://host.docker.internal:8000/v1
|
|
OPENAI_API_KEY=dummy
|
|
# ANTHROPIC_API_KEY=sk-ant-...# Set instead of OPENAI_API_KEY for Anthropic
|
|
# TAVILY_API_KEY=tvly-... # Web search fallback (local models only)
|
|
# MODEL=# Override default model alias
|
|
|
|
# -- Authentication (required) ------------------------------------------------
|
|
# Generate with: python -c "import secrets; print(secrets.token_hex(32))"
|
|
TURNSTONE_JWT_SECRET=changeme-to-32-bytes-of-hex
|
|
|
|
# -- Database ------------------------------------------------------------------
|
|
# Single-node default is SQLite (zero config). Set these for PostgreSQL:
|
|
# TURNSTONE_DB_BACKEND=postgresql
|
|
# POSTGRES_USER=turnstone
|
|
# POSTGRES_PASSWORD=changeme
|
|
# TURNSTONE_DB_URL=postgresql+psycopg://turnstone:changeme@postgres:5432/turnstone
|
|
|
|
# -- Ports ---------------------------------------------------------------------
|
|
# SERVER_PORT=8080
|
|
# CONSOLE_PORT=8090
|
|
|
|
# -- Workspace -----------------------------------------------------------------
|
|
# Bind-mount a host directory into the container at /workspace.
|
|
# The model can read/write files here. Default: empty Docker volume.
|
|
# WORKSPACE_MOUNT=/path/to/your/project
|
|
|
|
# -- Agent behavior ------------------------------------------------------------
|
|
# SKIP_PERMISSIONS=true # Auto-approve all tool calls (dev only)
|
|
# MCP_CONFIG=/workspace/mcp.json# MCP server configuration file
|
|
|
|
# -- Discord channel gateway ---------------------------------------------------
|
|
# TURNSTONE_DISCORD_TOKEN=
|
|
# TURNSTONE_DISCORD_GUILD=0
|
|
|
|
# -- Cluster (profile: cluster) -----------------------------------------------
|
|
# These are set per-node in compose.yaml; only override for custom topologies.
|
|
# TURNSTONE_NODE_ID=node-1
|
|
# TURNSTONE_ADVERTISE_URL=http://server-1:8080
|
|
|