L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Déploiement et opérations · SKILL.md

deploy-configure

deploy-configure

Guides DocsGPT development, deployment, service topology, model configuration, authentication, storage, observability, and upgrades.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: deploy-configure description: "Guides DocsGPT development, deployment, service topology, model configuration, authentication, storage, observability, and upgrades." disable-model-invocation: true metadata: disco-role: operating license: MIT

Deploy and Configure DocsGPT

Use this sub-skill for environment setup, application topology, provider/model configuration, auth, storage, database, queue, observability, and upgrade work.

Choose the path

  • Source development: read development and deployment. Reuse an existing Python environment, Postgres, and Redis when healthy; use explicit dependency commands rather than setup bootstrap scripts.
  • Container or Kubernetes deployment: read the same reference for service topology, health gates, worker queues, reverse proxy, and rollout order.
  • Environment/model configuration: read configuration, then validate custom model YAML before restart.
  • OIDC, SCIM, RBAC, S3, migrations, or observability: read auth, storage, and observability.
  • Failure or upgrade: read troubleshooting before mutating data or identity configuration.

Baseline source-development workflow

  1. Confirm Python 3.12, a project-local environment, and existing service health.

  2. Configure a root .env; do not commit it.

  3. Install the bundled 0.18.0 backend dependency snapshot explicitly (run from this sub-skill directory):

    python -m pip install -r ../../references/backend-requirements-0.18.0.txt
    

    For another DocsGPT release, compare repository provenance and refresh the skill rather than silently mixing dependency versions.

  4. Run the full ASGI target:

    uvicorn application.asgi:asgi_app --host 0.0.0.0 --port 7091 --reload
    
  5. Start a worker in another terminal when ingestion, parsing, schedules, titles, or other background jobs are needed:

    celery -A application.app.celery worker -l INFO
    

    On macOS, use python -m celery -A application.app.celery worker -l INFO --pool=solo.

  6. Run the frontend separately with its local npm dependencies.

  7. Verify /api/health, /api/config, one model listing, and one bounded task before broader testing.

Flask-only development is a reduced mode: /mcp and native-async message-event reconnect are absent.

Service preflight

Use the bundled checker before blaming application code:

python scripts/check_services.py \
  --postgres-uri "$POSTGRES_URI" \
  --redis-url "$CELERY_BROKER_URL" \
  --api-url http://localhost:7091

The helper performs connection/readiness probes only. Omit secrets from pasted output.

Model catalog changes

Use operator YAML through MODELS_CONFIG_DIR for OpenAI-compatible endpoints or extensions to registered providers. Preserve model ids after users select them.

python scripts/validate_model_catalog.py ./models-config

Validation checks shape, duplicate ids, supported capability fields, attachment aliases, reasoning effort, and OpenAI-compatible metadata. It does not contact providers.

Production rules

  • Run the ASGI app through an ASGI-capable worker. Forward SSE without proxy buffering and preserve long request timeouts deliberately.
  • Use Postgres as the user-data store. Set AUTO_CREATE_DB=false and AUTO_MIGRATE=false when migrations are controlled by CI/CD.
  • Use Redis URLs consistently across web and workers. A worker without -Q consumes all configured queues; split docsgpt and parsing only with matching workers.
  • Treat LOCAL_MODE_ADMIN=true as local no-auth mode only; never use it on a networked deployment.
  • Mount model catalogs read-only, keep secrets in the platform secret store, and separate public base URLs from internal service URLs.
  • Back up Postgres and object storage before schema or data migrations.
  • Add optional services only for selected features: pgvector/vector database, S3-compatible storage, sandbox runner, OAuth connectors, telemetry collector.

Cross-skill routes

Skills enregistrées