This document lists all configurable environment variables for the Currents Docker Compose deployment.
Variables are configured in the .env file. Run ./scripts/setup.sh to generate secrets automatically, or use the manual generation commands shown below.
These values must be set before starting. Secrets can be generated with ./scripts/setup.sh or manually.
| Variable | Type | Default | Description |
|---|---|---|---|
ON_PREM_EMAIL |
string | admin@localhost |
Email address for the root admin user |
SMTP_HOST |
string | localhost |
SMTP server hostname |
SMTP_USER |
string | test |
SMTP username |
SMTP_PASS |
string | test |
SMTP password |
JWT_SECRET |
string | (empty) | Authentication token secret. Generate with: ./scripts/generate-secrets.sh token 64 |
API_SECRET |
string | (empty) | Internal API secret for service-to-service auth. Generate with: ./scripts/generate-secrets.sh token 64 |
RUSTFS_SECRET_KEY |
string | (empty) | RustFS/S3 secret key (only if using included RustFS). Generate with: ./scripts/generate-secrets.sh token 32 |
MONGODB_PASSWORD |
string | (empty) | MongoDB password. Generate with: ./scripts/generate-secrets.sh token 32 |
CLICKHOUSE_DEFAULT_PASSWORD |
string | (empty) | ClickHouse default user password (only if using included ClickHouse). Generate with: ./scripts/generate-secrets.sh token 32 |
CLICKHOUSE_CURRENTS_PASSWORD |
string | (empty) | ClickHouse currents user password. Generate with: ./scripts/generate-secrets.sh token 32 |
GITLAB_STATE_SECRET |
string | (empty) | GitLab integration key (base64-encoded RSA private key) |
These have defaults but you’ll likely want to customize them.
| Variable | Type | Default | Description |
|---|---|---|---|
APP_BASE_URL |
string | http://localhost:4000 |
Base URL for the dashboard/API |
CURRENTS_RECORD_API_URL |
string | http://localhost:1234 |
Base URL for the recording endpoint (director) |
SMTP_PORT |
int | 587 |
SMTP server port |
SMTP_SECURE |
bool | false |
Whether SMTP uses TLS |
AUTOMATED_REPORTS_EMAIL_FROM |
string | Currents Report <report@example.com> |
From address for automated report emails |
INVITE_EMAIL_FROM |
string | Currents App <no-reply@example.com> |
From address for invitation emails |
FILE_STORAGE_ENDPOINT |
string | http://localhost:9000 |
Object storage endpoint (external access) |
FILE_STORAGE_BUCKET |
string | currents |
Object storage bucket name |
FILE_STORAGE_ACCESS_KEY_ID |
string | ${RUSTFS_ACCESS_KEY} |
Object storage access key ID |
FILE_STORAGE_SECRET_ACCESS_KEY |
string | ${RUSTFS_SECRET_KEY} |
Object storage secret access key |
FILE_STORAGE_REGION |
string | (commented) | S3 region (required for AWS S3) |
APP_CONTENT_STORAGE_ENDPOINT |
string | ${FILE_STORAGE_ENDPOINT} |
App content bucket endpoint (external access): context shares, organization logos and session files. Unset, context sharing and logo editing are off and session files cannot be uploaded (details) |
APP_CONTENT_STORAGE_BUCKET |
string | currents-app-content |
App content bucket name |
APP_CONTENT_STORAGE_ACCESS_KEY_ID |
string | ${FILE_STORAGE_ACCESS_KEY_ID} |
App content bucket access key ID |
APP_CONTENT_STORAGE_SECRET_ACCESS_KEY |
string | ${FILE_STORAGE_SECRET_ACCESS_KEY} |
App content bucket secret access key |
APP_CONTENT_STORAGE_REGION |
string | (commented) | S3 region (required for AWS S3) |
CLICKHOUSE_URL |
string | http://clickhouse:8123 |
ClickHouse HTTP endpoint |
CLICKHOUSE_USERNAME |
string | currents |
ClickHouse username |
MONGODB_USERNAME |
string | currents-user |
MongoDB username |
MONGODB_DATABASE |
string | currents |
MongoDB database name |
MONGODB_URI |
string | (derived) | Full MongoDB connection string |
TRAEFIK_DOMAIN |
string | localhost |
Base domain for Traefik TLS routing |
TRAEFIK_API_SUBDOMAIN |
string | currents-app |
Subdomain for API/Dashboard |
TRAEFIK_DIRECTOR_SUBDOMAIN |
string | currents-record |
Subdomain for Director |
TRAEFIK_STORAGE_SUBDOMAIN |
string | currents-storage |
Subdomain for RustFS S3 API |
TRAEFIK_ENABLE_STORAGE |
bool | false |
Enable storage routing (auto-set when rustfs included) |
Less commonly changed settings with sensible defaults.
| Variable | Type | Default | Description |
|---|---|---|---|
JWT_SECRET_EXPIRY |
string | 10m |
How often to expire session tokens |
REDIS_URI |
string | redis://redis:6379 |
Redis connection URI |
REDIS_URI_SLAVE |
string | redis://redis:6379 |
Redis replica connection URI |
RUSTFS_ACCESS_KEY |
string | rustfs-access-key |
RustFS/S3 access key |
FILE_STORAGE_INTERNAL_ENDPOINT |
string | http://host.docker.internal:9000 |
Object storage endpoint the services use from inside Docker. For AWS S3, set it to FILE_STORAGE_ENDPOINT (details) |
FILE_STORAGE_FORCE_PATH_STYLE |
bool | (commented) | Use path-style S3 URLs (auto-set to true when using RustFS profile) |
APP_CONTENT_STORAGE_INTERNAL_ENDPOINT |
string | ${FILE_STORAGE_INTERNAL_ENDPOINT} |
App content bucket endpoint the services use from inside Docker |
APP_CONTENT_STORAGE_FORCE_PATH_STYLE |
bool | (commented) | Path-style URLs for the app content bucket (auto-set to true when using RustFS profile) |
API_BASE_URL |
string | ${APP_BASE_URL} |
Public API origin, used in share links and as the OAuth token audience |
AUTOMATED_REPORTS_EMAIL_BCC |
string | (empty) | BCC address for automated reports |
INVITE_EMAIL_BCC |
string | (empty) | BCC address for invitation emails |
INVITE_EXPIRATION_DAYS |
int | 14 |
Number of days before invitations expire |
EMAIL_LINKS_BASE_URL |
string | ${APP_BASE_URL} |
Base URL for links in emails (derived from APP_BASE_URL) |
BETTER_AUTH_RATE_LIMIT_MAX |
int | 100 |
Requests to /api/auth/* per client address per window. The dashboard reads the session on every page load, so a team behind one NAT or proxy shares one budget, and past it pages load with no data |
BETTER_AUTH_RATE_LIMIT_WINDOW_SECONDS |
int | 10 |
The window for BETTER_AUTH_RATE_LIMIT_MAX |
Remote MCP lets coding agents use Currents tools over HTTP at <APP_BASE_URL>/mcp. Clients authenticate with a Currents API key or personal access token, or, with the OAuth provider on, by signing in with a Currents account. Both endpoints are reachable by anyone who can reach the install; they refuse requests without a valid credential.
| Variable | Type | Default | Description |
|---|---|---|---|
MCP_ENABLED |
bool | true |
Serve remote MCP at /mcp. Set false to turn it off; /mcp then answers 503 |
MCP_ORIGINS |
string | (empty) | Other origins clients reach /mcp on, comma separated |
OAUTH_PROVIDER_ENABLED |
bool | true in .env.example |
Serve OAuth authorization (/api/auth/oauth2/*, /.well-known/oauth-*). Issuer, token audience and JWKS URL are derived from APP_BASE_URL. Off when absent, so an upgraded .env keeps it off until added. Use an https APP_BASE_URL for any real setup. Over http it works only on localhost, or, for an evaluation, on a .localhost name in OAUTH_HTTP_ALLOWED_HOSTS. On any other http host the API refuses to start with it on, so set it to false there |
OAUTH_DYNAMIC_CLIENT_REGISTRATION_ENABLED |
bool | true in .env.example |
Let clients register themselves, the way to add a client without internet access |
OAUTH_CIMD_ENABLED |
bool | true |
Accept clients identified by a client ID metadata document: an https URL the server fetches. Hosts resolving to private, loopback or link-local addresses are refused |
OAUTH_HTTP_ALLOWED_HOSTS |
string | (empty) | For an evaluation without TLS: a .localhost name (e.g. currents.localhost) the OAuth endpoints may serve over http. Browsers resolve .localhost names to this machine. Another http host starts, but OAuth clients are sent to an https issuer the install does not serve |
OAUTH_JWKS_URL |
string | <APP_BASE_URL>/api/auth/jwks |
Where the API fetches its own signing keys to check access tokens. With a .localhost APP_BASE_URL, set http://localhost:4000/api/auth/jwks: the container cannot resolve .localhost names, so every token is rejected. Set the same when the container cannot reach or trust APP_BASE_URL (split DNS, an internal CA) |
OAUTH_RATE_LIMIT_REGISTER_MAX, OAUTH_RATE_LIMIT_TOKEN_MAX, OAUTH_RATE_LIMIT_AUTHORIZE_MAX, OAUTH_RATE_LIMIT_USERINFO_MAX |
int | 5, 20, 30, 60 |
OAuth requests per client address per 60 seconds, on top of BETTER_AUTH_RATE_LIMIT_MAX |
The API answers trace links at <API_BASE_URL>/t, with nothing to set. A trace link gives an agent read access to one failed test’s Playwright trace: its summary, frames, page snapshots, network requests and an animation of the failure. Agents get the links in context shares and from MCP, and reach them at the same address as the dashboard.
| Variable | Type | Default | Description |
|---|---|---|---|
TRACE_LINK_BASE_URL |
string | <API_BASE_URL>/t |
The address trace links point at, to serve them on a host of their own, such as https://traces.example.com/t. Keep the /t: the API serves trace links only under it, and a value without it gives links that open the dashboard |
With TRACE_LINK_BASE_URL on another host, route that host to the api container (port 4000) in your proxy, with its own TLS certificate. The bundled Traefik (tls profile) routes only its API, director and storage hosts (TRAEFIK_*_SUBDOMAIN under TRAEFIK_DOMAIN).
Trace work runs on worker threads in the api container, one job per thread, so it doesn’t slow the rest of the API. The threads follow the container’s CPUs: the host’s, since the compose files set no CPU limit.
| CPUs | Threads |
|---|---|
| 1 | One, for reads and renders |
| 2–3 | One for reads, one for renders |
| 4 or more | Two for reads, one for renders |
In testing, an api container with 2 CPUs and 2 GB answered about 2 agent investigations per second, with animations under 1.5 s at the 95th percentile and the rest of the API still answering in 2–3 ms. A busy hour of 10 failing runs uses about a sixth of that. The test ran on Apple Silicon; x86 cloud vCPUs render more slowly, so take it as an upper bound.
503 with Retry-After: 5, and agents retry.The ai-queue-worker service runs the AI tasks (test explanations, chat) from the ai-bmq queue. webhooks does not run AI tasks.
The service is off by default, because it needs an LLM endpoint you provide. AI stays off for an organization until an admin grants AI consent in its settings, so turn the worker on first: AI tasks requested without it wait in the queue and never finish. To turn it on, add to .env:
COMPOSE_PROFILES=ai
AI_QUEUE_WORKER_ENABLED=true
COMPOSE_PROFILES=ai starts ai-queue-worker with docker compose up -d. With TLS, set COMPOSE_PROFILES=tls,ai and run docker compose up -d without --profile tls: a --profile flag replaces COMPOSE_PROFILES, so --profile tls starts Traefik but not the worker.AI_QUEUE_WORKER_ENABLED=true has the scheduler build the MongoDB indexes for the AI collections, including the ones that expire old AI sessions. In webhooks it also starts the Slack AI answer worker, unless SLACK_AI_CALLBACK_WORKER_ENABLED is set.Then set the LLM endpoint below and run docker compose up -d. The worker reads these variables from .env, as do all services.
To turn the worker off, remove ai from COMPOSE_PROFILES and run docker compose rm -sf ai-queue-worker. docker compose up -d does not stop a service whose profile is no longer listed, so the worker keeps running with its old settings.
| Variable | Type | Default | Description |
|---|---|---|---|
LLM_PROVIDER_URL |
string | http://localhost:4001/v1 |
Base URL of an OpenAI-compatible API |
LLM_API_KEY |
string | (empty) | API key for the LLM provider |
LLM_MODEL |
string | gpt-6-luna |
Model for chat and run-analysis sessions |
LLM_EXPLANATION_MODEL |
string | gpt-6-luna |
Model for test and error explanations |
LLM_REASONING_EFFORT |
string | medium |
none, low, medium or high; any other value falls back to medium |
LLM_EXPLANATION_REASONING_EFFORT |
string | LLM_REASONING_EFFORT |
Reasoning effort for explanations; same values |
EXPLANATION_TRACE_TOOLS |
bool | false |
true: error explanations read the Playwright trace of the failed attempt |
AI_QUEUE_CONCURRENCY |
int | 5 |
AI tasks run at the same time |
USE_MOCK_AI |
bool | false |
Return mock answers without calling an LLM (testing) |
Enable SAML single sign-on by setting the two required variables and mounting your IdP metadata file into ./data/sso. See Enable SAML SSO for the full walkthrough. SSO turns on automatically once both required variables are set — there is no separate enable flag.
| Variable | Type | Default | Description |
|---|---|---|---|
SSO_SAML_IDP_METADATA_FILE |
string | (empty) | Path to the mounted IdP metadata XML (e.g. /etc/currents/sso/idp-metadata.xml). Required to enable SSO. |
SSO_SAML_ISSUER |
string | (empty) | SP entityID / audience — a stable opaque identifier (e.g. currents-onprem:your-org). Must match the Audience / SP Entity ID configured in your IdP. Required to enable SSO. |
SSO_SAML_PROVIDER_ID |
string | onprem-saml |
Provider id; recommend your IdP name (e.g. okta). Becomes the last path segment of the ACS URL, <APP_BASE_URL>/api/auth/sso/saml2/sp/acs/<provider id>. |
SSO_SAML_DEFAULT_ROLE |
string | member |
Role granted to auto-provisioned SSO users |
SSO_ALLOWED_DOMAINS |
string | (empty) | Comma-separated email domains allowed to sign in via SSO |
SSO_SAML_AUTHN_REQUESTS_SIGNED |
bool | false |
Sign outbound AuthnRequests (requires the SP key below) |
SSO_SAML_SP_KEY_FILE |
string | (empty) | Path to the mounted SP private key PEM (only when signing requests) |
SSO_SAML_ALLOW_IDP_INITIATED |
bool | false |
Accept sign-ins started from the IdP’s app dashboard. Off, such a sign-in is refused and users start from the Currents sign-in page |
These variables configure Docker Compose behavior only (not passed to containers). All are optional with sensible defaults.
| Variable | Type | Default | Description |
|---|---|---|---|
DC_CURRENTS_IMAGE_REPOSITORY |
string | currents- |
Image repository prefix for Currents services |
DC_CURRENTS_IMAGE_TAG |
string | dev |
Image tag for Currents services |
DC_MONGODB_IMAGE |
string | mongo:8.2.3 |
MongoDB image |
DC_REDIS_IMAGE |
string | redis/redis-stack-server:7.4.0-v8 |
Redis image |
DC_CLICKHOUSE_IMAGE |
string | clickhouse/clickhouse-server:25.8 |
ClickHouse image |
DC_RUSTFS_IMAGE |
string | rustfs/rustfs:1.0.1 |
RustFS image |
DC_AWS_CLI_IMAGE |
string | amazon/aws-cli:latest |
AWS CLI image (for bucket init) |
| Variable | Type | Default | Description |
|---|---|---|---|
DC_RUSTFS_DELETE_ARTIFACTS_AFTER_DAYS |
int | (unset) | Delete artifacts (screenshots, videos, traces, stdout) older than this many days, through a lifecycle rule rustfs-init applies. Unset keeps them until deleted. Other storage: Artifact expiry |
| Variable | Type | Default | Description |
|---|---|---|---|
DC_DIRECTOR_PORT |
string | 1234 |
Director API port (all interfaces) |
DC_API_PORT |
string | 4000 |
Dashboard/API port (all interfaces) |
DC_MONGODB_PORT |
string | 127.0.0.1:27017 |
MongoDB port (localhost only) |
DC_REDIS_PORT |
string | 127.0.0.1:6379 |
Redis port (localhost only) |
DC_CLICKHOUSE_HTTP_PORT |
string | 127.0.0.1:8123 |
ClickHouse HTTP port (localhost only) |
DC_CLICKHOUSE_TCP_PORT |
string | 127.0.0.1:9123 |
ClickHouse TCP port (localhost only) |
DC_RUSTFS_S3_PORT |
string | 9000 |
RustFS S3 API port (all interfaces) |
DC_RUSTFS_CONSOLE_PORT |
string | 9001 |
RustFS Console port (all interfaces) |
| Variable | Type | Default | Description |
|---|---|---|---|
DC_REDIS_VOLUME |
string | ./data/redis |
Redis data volume path |
DC_MONGODB_VOLUME |
string | ./data/mongodb |
MongoDB data volume path |
DC_CLICKHOUSE_VOLUME |
string | ./data/clickhouse |
ClickHouse data volume path |
DC_RUSTFS_VOLUME |
string | ./data/rustfs |
RustFS data volume path |
DC_SCHEDULER_STARTUP_VOLUME |
string | ./data/startup |
Scheduler startup data volume |
DC_SSO_VOLUME |
string | ./data/sso |
SAML SSO files directory (IdP metadata + optional SP PEMs), mounted read-only to /etc/currents/sso |
| Variable | Type | Default | Description |
|---|---|---|---|
DC_TRAEFIK_IMAGE |
string | traefik:v3.3 |
Traefik image |
DC_TRAEFIK_HTTP_PORT |
string | 80 |
Traefik HTTP port |
DC_TRAEFIK_HTTPS_PORT |
string | 443 |
Traefik HTTPS port |
DC_TRAEFIK_CERTS_DIR |
string | ./data/traefik/certs |
Certificate directory |
DC_TRAEFIK_CONFIG_DIR |
string | ./data/traefik/config |
Custom config directory |
TRAEFIK_GENERATE_TEMP_CERTS |
bool | false |
Generate temporary self-signed certs |
| Variable | Type | Default | Description |
|---|---|---|---|
CORALOGIX_API_ENDPOINT |
string | (empty) | Coralogix API endpoint |
CORALOGIX_API_KEY |
string | (empty) | Coralogix API key |
CORALOGIX_APP_NAME |
string | customer-name |
Application name for Coralogix |