Skip to content

Open source alternative to Semrush and Ahrefs

fix(docker): forward OPENROUTER_API_KEY into the self-host container (#152)

Nordalux4f45a0496181
diff --git a/compose.yaml b/compose.yaml
index 0f32c25d..5270974f 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -19,6 +19,9 @@ services:
- OPENSEO_TELEMETRY_DISABLED=${OPENSEO_TELEMETRY_DISABLED:-}
- DO_NOT_TRACK=${DO_NOT_TRACK:-}
- DATAFORSEO_API_KEY=${DATAFORSEO_API_KEY}
+ # Optional: AI features (SAM, onboarding chat). Without this the setup
+ # gate in the app asks for the key, but nothing here would forward it.
+ - OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
# Optional: Google Search Console. See
# docs/SELF_HOSTING_GOOGLE_SEARCH_CONSOLE.md
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID:-}
diff --git a/docs/SELF_HOSTING_DOCKER.md b/docs/SELF_HOSTING_DOCKER.md
index ab7860a0..0c142a1f 100644
--- a/docs/SELF_HOSTING_DOCKER.md
+++ b/docs/SELF_HOSTING_DOCKER.md
@@ -33,6 +33,7 @@ Optional env values:
- `ALLOWED_HOST` (single reverse-proxy hostname to allow in Vite preview)
- `AUTH_MODE=local_noauth` (already set in compose)
- `OPEN_SEO_IMAGE` (defaults to `ghcr.io/every-app/open-seo:latest`)
+- `OPENROUTER_API_KEY` (required for AI features such as SAM; see [OpenRouter](https://openrouter.ai/settings/keys))
If you are putting Docker behind a reverse proxy or a temporary tunnel, remember that Docker self-hosting runs with app auth disabled. Only expose it behind your own auth-protected reverse proxy, tunnel, or private network, and add the public hostname before restarting: