deployment-and-configuration
Boot, configure, and operate Yuxi Docker, Lite, production, and service-topology workflows safely.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- deployment-and-configuration
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Boot, configure, and operate Yuxi Docker, Lite, production, and service-topology workflows safely.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/configuration-and-secrets.md8.9 KB
- 参考文档references/runtime-topology.md6.6 KB
- 参考文档references/troubleshooting.md6.0 KB
03 SKILL.md 正文
Deployment and Configuration
Load this sub-skill when the task is about starting, diagnosing, or safely operating a Yuxi deployment rather than changing agent, knowledge-base, CLI, or frontend code.
Owns
- Docker Compose development, Lite, production, and optional OCR profile topology.
.env/.env.prod, startup environment variables, administrator system options, model-provider credentials, CORS, reverse proxy, MinIO public assets, sandbox-provisioner, and OCR service configuration.- Read-only runtime checks for an already started stack.
- Deployment troubleshooting, including logs, health endpoints, image pulls, service dependencies, and service-required verification candidates.
Route elsewhere
- Agent run lifecycle, Skills/MCP/SubAgent behavior, streaming internals, and
sandbox tool semantics: use the
agent-runtimesub-skill after confirming the stack is healthy. - Knowledge-base ingestion, parser behavior, OCR engine output, graph retrieval,
or chunking details: use
knowledge-and-ocrafter confirming required services and credentials. yuxiCLI usage, external API/SSE client examples, and Langfuse evaluation commands: usecli-and-external-integrationafter confirming base URL and authentication assumptions.- Repository editing, tests, lint, release, or changelog workflow: use
repo-development.
Safety gates
- Do not print, paste, commit, or summarize real
.env,.env.prod, JWT, sandbox, database, MinIO, model-provider, API-key, OCR, or Langfuse secrets. Report only variable names and whether values are missing when necessary. - Treat initialization, image-pull, reset, seed, and service restart commands as side-effectful. Run them only after explicit user approval and only in the intended deployment directory.
- Use
scripts/check-runtime-health.shfor read-only checks. It does not start, stop, rebuild, seed, or edit configuration. - Production API-key traffic must use HTTPS at the external boundary. Do not
recommend sending
yxkey_...tokens over plain HTTP except for local-only development. - External model-provider connectivity, Langfuse tracing/evaluation, cloud OCR, and web search checks require credentials, network access, and explicit opt-in.
- GPU-backed OCR services (
mineru-api,paddlex) are optional service profiles; do not represent them as core verified CPU capabilities.
Fast operating workflow
-
Identify the deployment flavor:
- Development:
docker-compose.yml, web onhttp://localhost:5173, API onhttp://localhost:5050. - Lite:
make up-lite, intended to skip heavy knowledge/graph services. - Production:
docker-compose.prod.yml, web and API behind Nginx on port 80. - Optional OCR profile:
--profile alladds MinerU and PaddleX services.
- Development:
-
Check configuration readiness without exposing values. Use
references/configuration-and-secrets.mdfor required variables and where each layer is read. -
If a stack is already running, run the bundled read-only probe from a Yuxi deployment directory:
# development stack scripts/check-runtime-health.sh --project-dir . --dev # production stack scripts/check-runtime-health.sh --project-dir . --prodIf the script is copied outside the skill tree, keep its relative path local to the copied location and pass
--project-dirto the deployment directory. -
For failures, gather only bounded diagnostics:
docker compose psdocker compose logs --tail=100 api worker web sandbox-provisioner- API health endpoint response from
/api/system/health - Browser-visible web entrypoint status
-
Escalate to the routed sub-skill only after the relevant service health and credential gate is understood.
References
references/runtime-topology.md— service maps, Compose flavors, ports, Makefile entries, optional profiles, and native service-required candidates.references/configuration-and-secrets.md— startup env, administrator system options, model providers, CORS/proxy, MinIO, sandbox, OCR, API key, and Langfuse safety rules.references/troubleshooting.md— symptom-driven diagnosis and safe next commands.scripts/check-runtime-health.sh— read-only health/log probe for a running deployment.
Native verification candidates
Use these only as verification candidates in an active Yuxi checkout or service environment; this sub-skill remains self-contained for operating context.
| Candidate | Requirement | Proves |
|---|---|---|
docker-dev-runtime |
Docker Compose development stack; service-required | Compose health and container logs support dev deployment guidance. |
docker-prod-runtime |
Production Compose plus .env.prod secrets; service-required/reference-checked |
Production topology, Nginx proxy path, and secret gates are understood. |
model-provider-connectivity |
Network and explicit provider credentials; optional/external | Real provider calls are only tested when the user enables them. |
ocr-config-center-e2e |
Running API/Postgres and authenticated user; optional/service-required | OCR configuration endpoints reflect runtime env/admin settings. |
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.