Does RAGFlow on premise meet the self-hosting requirement?
Yes, for the open-source edition. RAGFlow's Apache 2.0 code deploys on hosts you control with Docker Compose from the docker directory, and the RAGFlow README at v1.0.0 lists this Docker route as suitable for evaluation, integration testing and production. That means the self-hosting requirement can be met in your cloud account, data center or air-gapped network. The README's starting sizing is at least 4 CPU cores, 16 GB RAM and 50 GB free disk, with Docker 24.0.0 or later and Docker Compose v2.26.1 or later. Actual needs depend on the document engine, data volume and concurrency, so size the hosts with your own load in mind. macOS is not currently supported, so plan Linux hosts for any production route.
The checklist answer comes with gaps you must design around. The open-source docs reviewed do not describe SSO for the open-source edition. The service_conf.yaml.template at v1.0.0 has its authentication block commented out, with no active OAuth, OIDC or LDAP section. Role-based access control, multi-tenancy and audit logging are also not documented for the open-source edition, so each needs a compensating control at the network, proxy or logging layer, and you should confirm current behavior in the repository before you rely on it. Two settings need action on day one. The first start creates a superuser, admin@ragflow.io, with a shipped password of admin that must be replaced before first start if other hosts can reach the service. Also review ENABLE_REGISTER in docker/.env, which defaults to 1 and leaves user registration open.
The Enterprise offering is outside what the sources reviewed describe. Its SSO, role model, multi-tenancy and audit logging support is unknown here, so ask for it in writing before you count on it. The RAGFlow about page says the open-source edition can be deployed in your own environment when data residency or isolation is required, which is the basis for the self-hosting path in this guide. The matrix in this guide maps each requirement, including SSO, access control, multi-tenancy, audit logging and data residency, to what the open-source edition documents, what your team must build and what to confirm with the vendor. The decisions ahead are whether the open-source edition with compensating controls meets your policy, which document engine to run, and whether the remaining gaps justify an Enterprise conversation.
Which RAGFlow on premise controls are built in, paid or missing
This table compares the self-hosting controls in RAGFlow's open-source edition, what the Enterprise offering documents in the sources reviewed, and the components you must supply yourself. Read built in as a setting that exists in the open-source files, and missing as a control no source we reviewed documents. The main takeaway is that identity, audit logging and air-gapped operation need your own components or written confirmation from RAGFlow before go-live.
| Capability | Open-source edition | Enterprise offering | Outside component needed |
|---|---|---|---|
| Docker Compose self-hosting | Built in, production use listed in README | Not described in sources reviewed, confirm in writing | Docker 24.0.0 or later, Docker Compose v2.26.1 or later |
| Running in your own environment for data residency or isolation | Built in, per the about page | Not described in sources reviewed, confirm in writing | Your own cloud account, data center or isolated network |
| User registration control via ENABLE_REGISTER | Built in, controls sign-up and defaults to 1 | Not described in sources reviewed, confirm in writing | None |
| Connector credential encryption via RAGFLOW_CONNECTOR_KEY | Built in, optional. Stored as plaintext if the key is unset | Not described in sources reviewed, confirm in writing | None, but set the key in docker/.env before connecting sources |
| SSO with an identity provider | Not documented, authentication block is commented out in v1.0.0 | Not described in sources reviewed, confirm in writing | An identity provider and a custom integration, confirmed with RAGFlow |
| Role-based access control (RBAC) | Not documented in sources reviewed | Not described in sources reviewed, confirm in writing | Reverse proxy or identity layer for access policy, to be designed |
| Multi-tenancy | Not documented in sources reviewed | Not described in sources reviewed, confirm in writing | Separate deployments or an isolation layer, to be designed |
| Audit logging | Not documented, container and proxy logs must be sourced | Not described in sources reviewed, confirm in writing | Log collection, retention and reverse proxy logging |
| Air-gapped operation | Not stated, confirm image and model mirroring | Not described in sources reviewed, confirm in writing | Internal image registry, package and model mirrors |
| Offline local models through Ollama | Supported per FAQ for private, offline inference | Not described in sources reviewed, confirm in writing | Ollama, plus local model storage and compute |
How RAGFlow on premise separates the application from its stores
A reviewer needs to map each process and store before deciding where controls belong. In the open-source edition, one Go process runs the Admin, API, Ingestor, Syncer and Chatter services, so one host carries the whole application tier. By default, Admin listens on port 9381 and the API on port 9380. The configuration reference names the stores that sit behind that process: MySQL (database rag_flow) for metadata, MinIO for object storage, Kvrocks as the Redis-compatible cache, NATS JetStream as the message queue, and a document engine. Elasticsearch is the default document engine and Infinity is the other documented option, selected in docker/.env. Each store needs its own access path, backup plan and network rule, so list all of them in the data flow diagram before the review starts.
The login boundary is the part most likely to be assumed without checking. In v1.0.0, the authentication block in service_conf.yaml.template is commented out, and the file has no active OAuth, OIDC or LDAP section. The official docs reviewed do not describe SSO setup for the open-source edition. Confirm with RAGFlow exactly how sign-in works in the version you deploy before you write any access control statement. Until that is confirmed, treat the network and any reverse proxy or gateway in front of ports 9380 and 9381 as the places where access is decided. On first start, the Admin service creates a superuser, admin@ragflow.io, and the shipped password for that account is admin until someone changes it.
Record, for each port and store, which layer makes the access decision. The Admin Service documentation says to replace the default admin password before first start if other hosts can reach the service, and to restrict port 9381 to trusted administrators, so the network rule and the password are two controls the reviewer will ask you to evidence. For the API on port 9380, confirm how API keys and user sessions are checked in your version, and decide whether ENABLE_REGISTER (default 1) should stay on. Store ports should not be reachable from user networks at all. Then ask the question the reviewer will ask: if the proxy is bypassed, what still stops a request? Put the answer in the review pack, backed by a test run from outside the administrator network.
Users reach RAGFlow through your own proxy, and only the server talks to the stores
The diagram starts with users reaching a reverse proxy or access layer that your organization operates, which is where SSO would be enforced. The proxy forwards traffic to the RAGFlow server process, which exposes the API on port 9380 and the Admin service on port 9381. From there the server connects to MySQL for metadata, MinIO for object storage, Kvrocks as the Redis-compatible cache, NATS JetStream as the message queue and the chosen document engine, which is Elasticsearch or Infinity. Ollama is optional for local models. Check that port 9381 is reachable only by trusted administrators, and confirm any SSO design with the vendor, because the open-source configuration does not ship an active SSO section.
Request path and stores inside the organization-operated trust boundary.
Which RAGFlow on premise choices change your control posture
Each card is a decision that sets how much of the stack your team controls after go-live. Login, port exposure and connector secrets belong to your security team, while the document engine, model hosting and storage placement decide what your operators must build and run.
Where login is enforced
The open-source server ships with no active OAuth, OIDC or LDAP section, and its authentication block is commented out in the configuration template. ENABLE_REGISTER defaults to 1, which leaves self-registration open until you change it in docker/.env. Decide whether a proxy or access layer in front of the application will enforce sign-in for every route, and confirm that registration is off before users can reach the service. The official documentation does not describe SSO setup for this edition, so budget that work separately.
Exposure of ports 9380 and 9381
The API listens on port 9380 and the Admin Service on port 9381 by default. The Admin Service documentation says to replace the default admin password, shipped as admin, before first start if other hosts can reach the service. Restrict port 9381 to trusted administrators and confirm that neither port is published to user networks, load balancers or the internet. Test reachability from outside the trusted segment before go-live.
Document engine: Elasticsearch or Infinity
Elasticsearch needs a host kernel setting. Elasticsearch is the default document engine, and Infinity is the other documented option, selected in docker/.env. With Elasticsearch, vm.max_map_count must be at least 262144 on every Docker host that runs the index, so confirm it before first start. The choice also changes the sizing and monitoring your operators must run, so decide it before any data loads.
Model hosting and DeepDoc
Ollama can serve local models for private, offline inference, while external model APIs send prompts and retrieved content to a provider outside your network. In the open-source 1.0 release, DeepDoc runs on CPU in 1.0, covering layout analysis, OCR and table recognition, so plan parsing capacity around the cores you allocate. Decide which model routes are allowed, document the network egress each one needs, and test a fully offline configuration before you commit to it. Confirm which models your hardware can serve at the volume you expect.
RAGFlow FAQStorage placement for MinIO and MySQL
MinIO holds the stored files and MySQL holds metadata in the rag_flow database, so back up MinIO and MySQL together at the same point in time. Decide where their volumes live, who owns snapshots and how often a restore is tested. The release notes for v1.0.0-rc1 describe a Go rewrite whose data upgrade is irreversible, so upgrades from 0.x need a tested backup and migration plan. Confirm that your storage platform can restore both services as one set.
RAGFLOW_CONNECTOR_KEY for connectors
RAGFLOW_CONNECTOR_KEY encrypts the credentials that data source connectors store. If it is unset, those credentials are stored as plaintext. Set the key in docker/.env before you connect any source, and keep it in the secret store your security team already audits. Confirm what happens to existing connector credentials if the key changes, and keep it out of configuration copies that leave your control.
How the answer changes by identity, edition and data sensitivity
A single team on a private network is the closest fit to the default open-source setup. The main risks are that the default admin credentials stay in place, that the admin port is reachable from more hosts than intended, and that the team assumes a sign-in model the configuration does not provide. Keep the controls proportionate to the team size, but do not skip the first-start steps.
- Admin credentials: Replace the default admin password before first start if any other host can reach the service, since the docker configuration ships it as
adminfor the superuseradmin@ragflow.io. - Admin port exposure: Restrict port 9381 to named administrators and confirm which hosts can reach the API on port 9380.
- Registration: Set
ENABLE_REGISTERindocker/.envon purpose, since it defaults to 1 and leaves user registration enabled. - Backups: Test a restore of MySQL and MinIO together, because metadata lives in MySQL and document objects live in MinIO.
Before go-live, ask RAGFlow in writing whether the open-source edition supports any sign-in method beyond local accounts, since the configuration template has no active OAuth, OIDC or LDAP section.
When many teams share one instance, registration, roles and audit gaps grow with every group added. Knowledge bases, agents and chat sessions from different teams sit in one deployment, so separation between them depends on how RAGFlow scopes ownership, and you must confirm that before onboarding a second team. Plan these controls before the first shared knowledge base is created.
- Registration policy: Decide whether
ENABLE_REGISTERstays enabled, and if administrators issue accounts, document who can create them and how they are removed when someone leaves. - Role model: Map each team to its knowledge bases and confirm whether RAGFlow offers role tiers beyond the superuser account.
- Audit trail: Confirm whether RAGFlow records administrative actions. If it does not, collect sign-in records and admin port access logs at the host or network layer.
- Connector credentials: Set
RAGFLOW_CONNECTOR_KEYbefore any team connects a data source, since connector credentials are stored as plaintext when it is unset. - Upgrade coordination: Schedule upgrades with every team informed, because the v1.0.0-rc1 release notes describe the data upgrade from 0.x as irreversible.
Ask RAGFlow in writing how user and dataset isolation works in the open-source edition and whether an administrator can view another team's documents.
Regulated or sensitive data shifts the question from whether the software works to who is accountable for each layer. The Data Processing Agreement covers customer-hosted deployments, but it leaves infrastructure security to the customer while keeping software-level security and support with RAGFlow. Your compliance team needs that split documented control by control before the first document is loaded.
- Division of responsibilities: Map each control to an owner, including host hardening, network segmentation, disk encryption, backups and patching for MySQL, MinIO, Kvrocks, NATS JetStream and the document engine.
- Key management: Store
RAGFLOW_CONNECTOR_KEYin your secrets manager, and confirm how it is rotated and what happens to stored connector credentials when it changes. - Model routing: Decide which models receive document text. Local inference through Ollama keeps prompts inside your environment, but any hosted model endpoint needs its own data handling review.
- Deletion: Define how deleted documents are removed from MinIO, the document engine and the database, then test that removal end to end.
Ask RAGFlow in writing which logs contain document content, how long they persist, and who at RAGFlow can access customer-hosted data during support.
Air-gapped operation depends on the isolation statement in RAGFlow's published material, which says the open-source edition can be deployed in your own environment when isolation is required. That statement does not describe a tested offline install procedure, so treat it as a claim that needs a test in your own network before you depend on it. The first start is the most useful test, because it shows every call the stack attempts to make.
- Image mirroring: Mirror every image the Docker Compose stack pulls into an internal registry, and record image digests so the offline copy can be checked against the online release.
- Offline models: Load embedding, chat and DeepDoc dependencies in advance. DeepDoc runs on CPU in 1.0, and Ollama can serve local models for offline inference, but confirm the license and origin of each model file.
- Blocked egress: Run the first start with outbound traffic blocked to reveal any call to external hosts for models, parsers or telemetry.
- Document engine: Confirm that Elasticsearch works with
vm.max_map_countset to at least 262144, or that Infinity works, using images from the mirror.
Ask RAGFlow in writing for the list of images, model downloads and external endpoints the open-source edition needs at install and at runtime, and whether any feature requires outbound access.
What RAGFlow on premise does not cover for SSO, RBAC and audit logs
The open-source edition leaves several access and data controls to the deploying team. Each card names a gap in v1.0.0, the usual way to close it, and what to verify before go-live. Several can be closed with configuration, a proxy or your identity provider, but the upgrade and air-gap items need a rehearsal before production.
No built-in SSO in v1.0.0
The service_conf.yaml.template in v1.0.0 has no active OAuth, OIDC or LDAP block, and its authentication section is commented out. The official docs reviewed do not describe SSO setup for the open-source edition, so plan for a layer in front of the service. Place an access proxy or identity-aware gateway backed by your existing identity provider in front of the web and API ports (the API listens on 9380 by default), then block direct access to those ports so users cannot skip it. Confirm with RAGFlow whether any native integration is planned before you commit to a design.
Default admin login and open registration
On first start the Admin service creates the superuser admin@ragflow.io, and the Docker configuration ships the password admin. Replace that password before first start if any other host can reach the service, and restrict port 9381 to trusted administrators. Separately, ENABLE_REGISTER in docker/.env defaults to 1, so anyone who can reach the login page may be able to create an account. Disable registration, then confirm the setting by attempting a sign-up from a clean browser session.
Connector credentials stored in plaintext
RAGFLOW_CONNECTOR_KEY encrypts the credentials that data source connectors use. If the key is unset, those credentials are stored as plaintext, so a database read or a backup exposes them. Generate a strong key, set it in docker/.env before you connect any source, and keep it in your secrets manager, outside the repository and the compose files. Ask the vendor what happens to existing encrypted credentials if the key is later changed, and test that before you rotate it.
RBAC, tenancy and audit logs undocumented
The official docs reviewed do not describe role-based access control, multi-tenant isolation or audit logging for the open-source edition, so treat it as no documented audit logging until the vendor says otherwise. Ask RAGFlow in writing which roles exist, how tenants are separated and which events are recorded, and file that answer with your evidence. Until it is clear, capture access and activity in the reverse proxy and container logs. If isolation is weak, run one tenant per instance so each deployment holds a single data boundary.
Irreversible data upgrade from 0.x
The v1.0.0-rc1 release notes describe a Go rewrite of the server and state that the data upgrade is irreversible. Moving from any 0.x release therefore needs a tested backup of MySQL, object storage and the document engine, plus a migration plan. Rehearse the upgrade on a copy of production data and time it, and confirm with the vendor whether any rollback path exists before you start. Keep the 0.x backup until the upgraded system has passed your acceptance checks.
Release notesAir-gapped operation not stated
The docs reviewed do not state that RAGFlow runs without internet access, so do not assume it. The Docker route pulls images, and the stack depends on MySQL, MinIO, Kvrocks and NATS JetStream, all of which must come from a mirrored registry. DeepDoc runs on CPU in 1.0, and Ollama can serve local models for private, offline inference, but model files must also be staged in advance. Rehearse a full install and a document ingestion run on an isolated network, then record every outbound call that fails.
How to take RAGFlow on premise into production in order
Follow these six steps in order to move a self-hosted RAGFlow installation from a test host to a production sign-off. Each step closes with a check you can record, so the sign-off rests on evidence from your own environment. The sequence starts with a written requirement matrix and ends with an air-gap test, which covers the conditions your organization will run under.
Confirm the requirement matrix in writing
Ask RAGFlow to confirm in writing the supported host OS, Docker, Docker Compose, document engine and model options you plan to use, and record the exact edition and release tag you will deploy. The current GA release is v1.0.0, published November 6, 2026, so state whether your team will deploy 1.0 or a 0.x release and why. Your security and compliance reviewers will need this record before any host is built. The step is done when the confirmed matrix and the release tag are filed with the design documents.
Build the host to the README minimums
Provision Linux hosts that meet the README minimums of 4 CPU cores, 16 GB RAM and 50 GB free disk, with Docker 24.0.0 or later and Docker Compose v2.26.1 or later. Size above these minimums, because the README says actual needs depend on the document engine, data volume and concurrency, and the open-source 1.0 DeepDoc backend runs layout analysis, OCR and table recognition on CPU. If you use Elasticsearch, set vm.max_map_count to at least 262144 on each host and make the setting persist across reboots. macOS is not currently supported. The step is done when each host's CPU, memory, disk, Docker and Compose versions and the kernel setting are recorded.
Deploy in staging with hardened defaults
Deploy from the docker directory with docker compose on an isolated staging network. In docker/.env, confirm the MySQL, MinIO, Kvrocks and NATS JetStream settings and choose Elasticsearch (the default) or Infinity as the document engine. Replace the default admin password, which ships as admin, before first start if any other host can reach the service. The superuser admin@ragflow.io is created on first start, so record that its password has changed. Restrict port 9381, the Admin service, to named administrators, and limit port 9380, the API, to the hosts that need it. The step is done when a test from outside the allowed hosts shows only the intended listeners.
Place authentication in front and test it
The authentication block in the open-source service_conf.yaml.template is commented out, and the official documentation does not describe SSO setup for the open-source edition, so confirm with RAGFlow which login paths the UI and API expose. In most designs you will place access control in front of the web and API endpoints, using a reverse proxy or gateway that connects to your identity provider. Then test from a host with no session that unauthenticated requests to the UI, the API and the Admin service are refused, and that a valid user can still sign in. The step is done when each endpoint's test result is recorded and any open path is fixed and retested.
Set registration, connector key and logging
In docker/.env and service_conf.yaml.template, decide deliberately whether ENABLE_REGISTER stays at its default of 1, and set RAGFLOW_CONNECTOR_KEY to a value your team manages, because connector credentials are stored as plaintext when the key is unset. Configure log destination and retention as the configuration reference describes, and confirm with RAGFlow where logs are written in your deployment. Verify each setting in two places: the config file on the host, and a live test in which a sign-up is refused when registration is off and a saved connector credential does not appear in plaintext in the database. The step is done when each check is recorded against its setting.
Rehearse recovery, upgrade and air-gap operation
Back up every stateful service, including MySQL, MinIO, Kvrocks, NATS JetStream and your document engine, then restore the backup to a separate host and confirm that the same documents and users return. Rehearse the upgrade from a 0.x release on a copy of production data, because the v1.0.0-rc1 release notes describe the data upgrade as irreversible, so a tested backup and migration plan must exist first. Then mirror the images into your registry, install with no outbound network access, and repeat the start-up and a test query. The step is done when the restore, upgrade and air-gap results are signed off by the owner of the system.
What a security reviewer asks to see for RAGFlow on premise
This table lists what a security reviewer typically requests for a self-hosted RAGFlow deployment, what each request should show, and where the evidence comes from. Read it as a checklist to finish before the review starts, since some items sit in files you control and others depend on your proxy, identity provider or backup tooling. The main takeaway is that the open-source edition leaves access control, network placement and backups to your team, so much of the evidence must come from your own environment.
| Reviewer request | What to show | Where it comes from |
|---|---|---|
| Architecture and component inventory | Compose files, running container list, and the chosen document engine (Elasticsearch or Infinity) | Repository files at your deployed tag, plus your container runtime output |
| Hardware and version baseline | Host size against the README minimum of 4 cores, 16 GB RAM and 50 GB free disk, and Docker and Compose versions | README at the deployed tag, plus your host and runtime version output |
| Registration setting | Value of ENABLE_REGISTER in docker/.env, which defaults to 1 and controls user registration | The docker/.env file and the RAGFlow configuration reference |
| Admin password and port restriction | Record that the default admin password was replaced before first start, and firewall rules limiting port 9381 to trusted administrators | Your change record and host or network firewall rules, per the Admin Service documentation |
| Connector key setting | Evidence that RAGFLOW_CONNECTOR_KEY is set in the environment, shown without the key value | Your secrets store or container configuration. Unset, connector credentials are stored as plaintext. |
| Access layer and login test results | Reverse proxy or identity provider configuration, and dated login tests showing allowed and denied users | Your proxy or IdP records. The open-source template has no active OAuth, OIDC or LDAP section. |
| Data processing terms | The current Data Processing Agreement on file, which covers customer-hosted deployments and leaves infrastructure security to you | RAGFlow Data Processing Agreement, last updated April 23, 2026 |
| Release and patch history | Deployed release tag, release notes reviewed for each upgrade, and dated records of applied patches | RAGFlow release notes. Upgrades from 0.x need a tested backup, since the v1.0.0-rc1 data upgrade is irreversible. |
| Backup and restore test records | Dated restore tests covering MySQL, MinIO and document engine data, with the outcome of each | Your backup job logs and restore runbook. Test results must come from your own environment. |
Questions buyers ask before approving RAGFlow on premise
What drives the cost of self-hosting RAGFlow on premise?
The RAGFlow source code is free to use under the Apache License 2.0, so your costs come from running it. The license covers the code. Hosting, staff time and outside components remain your costs, and they break down as follows:
- Hardware: the README recommends at least 4 CPU cores, 16 GB RAM and 50 GB free disk, and real needs depend on the document engine, data volume and concurrency.
- Required services: MySQL, MinIO, Kvrocks, NATS JetStream and Elasticsearch or Infinity each need capacity, patching and backups.
- Staff time: deployment, upgrades, monitoring and the engineering work for identity and logging.
- Outside components: any SSO provider, logging platform or support contract is priced by its own vendor.
Hardware and operations recur. Ask any partner for a quote that lists each line and separates one-time work from recurring costs.
How long does a self-hosted RAGFlow project take?
Duration depends on scope, identity integration and air-gap testing, so it is set only once the written scope exists. No single timeline fits every environment. The main drivers are the breadth of the deployment, how far identity integration goes, whether air-gap testing is required, and the document engine and data volume you choose. A base Docker Compose install with no outside integration is a much smaller job than a build that adds SSO, audit logging, role design and a tested upgrade path from 0.x. DeployOpen engagements are fixed-scope, so the timeline and deliverables are agreed in writing before work starts. Ask for each integration and test to be listed as a separate milestone so you can see what drives the total.
Can our own team deploy RAGFlow without outside help?
Yes, a team comfortable with Docker can follow the official docs for the base Docker Compose deployment, but identity and logging need engineering. The deployment runs from the docker directory with Docker 24.0.0 or later and Docker Compose v2.26.1 or later, and macOS is not supported. Your team can handle these steps:
- Editing
docker/.envanddocker/service_conf.yaml.template, and settingvm.max_map_countto at least 262144 if you use Elasticsearch. - Replacing the default admin password before first start and restricting port 9381 to trusted administrators.
Engineering work is needed for SSO. The open-source template has no active OAuth, OIDC or LDAP block, and the docs do not describe SSO setup for this edition. Role-based access design and audit logging also need planning before production use.
Does RAGFlow support air-gapped operation on premise?
Air-gapped operation is not confirmed in the published material, so confirm it with RAGFlow in writing before you approve the design. The RAGFlow FAQ describes self-hosting for control over data and models, and Ollama for private, offline inference. The open-source 1.0 DeepDoc backend runs layout analysis, OCR and table recognition on CPU. An air-gapped build still needs a plan for:
- Moving container images, packages and model files in through your approved transfer process.
- Egress checks that prove no service calls out during normal operation.
- Testing every ingestion and chat path with the network disconnected.
Ask the vendor which components need internet access at install time and which need it at runtime.
Does the RAGFlow Enterprise edition include SSO, RBAC or audit logging?
No published source confirms it, so get the answer in writing from RAGFlow before you depend on it. The public repository ships only the open-source edition, and its build_ee.sh file is an empty placeholder for enterprise build logic kept outside the upstream code. RAGFlow offers an Enterprise edition, but the published material does not list its features. Ask RAGFlow for:
- A feature list covering SSO, role-based access control and audit logging, with the version each applies to.
- Whether those features ship as code you deploy in your own environment.
- The support and contract terms that apply to the on-premise build.
Until the answer is in writing, plan SSO, access control and logging as work built on the open-source edition.
Does DeployOpen issue certification or audit reports for RAGFlow?
No. DeployOpen does not issue audit reports, attestations or certifications. It prepares systems, controls and evidence for compliance assessments, and independent auditors and certification bodies issue the reports. For a RAGFlow deployment, that preparation can include documenting the architecture, access model, logging design, backup and upgrade procedures, and the configuration settings an assessor will ask about. Ask your assessor which evidence they need before the build starts, so the design captures it from the beginning. Your organization still owns the scope decision and the outcome of any assessment.
What data stays inside our environment when RAGFlow uses local models?
When RAGFlow and its models run on your infrastructure, document content and metadata stay in the services you host. Those include MySQL for metadata, MinIO for object storage, and Elasticsearch or Infinity as the document engine. With Ollama serving local models, inference runs on your hardware for private, offline use. Two items need checking before approval:
- Outbound connections: connectors and model provider settings you enable can send data out, so test egress from each host.
- Connector credentials: set
RAGFLOW_CONNECTOR_KEY, because connector credentials are stored in plaintext if it is unset.
For the contract side, the RAGFlow Data Processing Agreement covers customer-hosted deployments, leaves infrastructure security to you, and keeps software-level security and support with RAGFlow.
How DeployOpen deploys and supports RAGFlow on premise
DeployOpen plans and deploys RAGFlow inside your own infrastructure, using the Docker Compose route the official README covers for production use. The work covers the required services, configuration files, access controls and the handover documents your security and platform teams need to review. Engagements are fixed-scope, with ongoing support available as a retainer.
How we scope
- The written scope names the RAGFlow release, the document engine (Elasticsearch or Infinity) and the hosts it runs on.
- Sizing is checked against document volume and concurrency, since the README minimum is 4 cores and 16 GB RAM.
- Fixed-scope terms cover the Admin and API ports, the access model and what your team must provide before work starts.
How we build
- Services are MySQL, MinIO, Kvrocks and NATS JetStream, with settings kept in
docker/.envanddocker/service_conf.yaml.template. - Ports 9380 and 9381 are reviewed for network exposure, and Elasticsearch hosts get vm.max_map_count set to 262144 or higher.
- Ollama serves local models for offline inference, and DeepDoc parsing runs on CPU in the 1.0 line.
How we hand over
- Handover documents record each service, its version, configuration keys and where data is stored.
- Admin credentials are changed from the shipped default before first start, and the superuser account is recorded.
- Connector encryption with RAGFLOW_CONNECTOR_KEY is set and tested, since unset connector credentials are stored as plaintext.
How we support
- An upgrade plan covers the 0.x to 1.0 move, where the rc1 notes say the data upgrade is irreversible.
- Backups are tested before each upgrade, covering MySQL, MinIO object storage and the document engine index.
- Retainers cover upgrades and support, and the RAGFlow Data Processing Agreement leaves infrastructure security with you.

