Repository navigation
docs(docker): explain .env vs environment/env_file, UTEKE_AUTH_TOKEN and the external-embedder setup (#1413) - #1420
Merged
Conversation
…and the external-embedder setup (#1413) Parked locally by owner request (lowest priority); not pushed. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
docs/docker.md: new subsections "Passing variables with Docker Compose" (a.envfile only fills${VAR}references; useenv_file:or list variables underenvironment:; the server readsUTEKE_AUTH_TOKENand starts unauthenticated when the token does not arrive) and "Using an external embedder (OpenAI-compatible or Ollama)" (variables, what the log should say, dims, reachability, one-write check, the data dir must stay writable by uid 1000). The environment variable table gainsUTEKE_READ_ONLY_TOKENand theUTEKE_EMBEDDING_*variables; the volume contents list notes that the ONNX model exists only with theonnxbackend.docker-compose.yml: commentedenv_filehint, the token-mapping example and the external-embedder variables.Why
Closes #1413. Both traps were hit on a real labs instance running v0.20.1: the embedding settings in
.envnever reached the container, and after editing the compose file the server started withAuthentication: disabled(only a WARN line says so).Testing
docker compose -f docker-compose.yml configstill parses and the file is valid YAMLUTEKE_AUTH_TOKENand a.envwithUTEKE_EMBEDDING_*gave "Model not found, downloading" and 0 embedding variables in the container; the same file withenv_file: .envgave theopenaibackend and no download). The log lines quoted in the docs are the real ones🤖 Generated with Claude Code