Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Principle:Infiniflow Ragflow Environment Configuration

From Leeroopedia
Knowledge Sources
Domains DevOps, Configuration_Management
Last Updated 2026-02-12 06:00 GMT

Overview

A file-based configuration pattern using environment variables and YAML templates to control deployment behavior.

Description

Environment Configuration uses two files: docker/.env (279 lines) for Docker Compose variables and docker/service_conf.yaml.template (167 lines) for backend service configuration. The .env file controls service selection (DOC_ENGINE, DEVICE), image versions, ports, and passwords. The YAML template uses ${VAR:-default} substitution processed by envsubst at container startup.

Usage

Edit before first deployment. Critical: change all default passwords for production.

Theoretical Basis

The two-layer configuration follows environment-driven deployment:

  • .env: Controls Docker Compose behavior (which services, which images)
  • service_conf.yaml: Controls application behavior (connections, models, storage)
  • Template substitution: envsubst bridges environment variables into YAML at runtime

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment