dfe-docker architecture
dfe-docker runs a whole DFE stack on one host under Docker Compose, from the same images and pins as the Kubernetes path. It is packaging, not product: it builds no DFE component, so a fault in the data path is almost always fixed in a component repo.
Figure 1. L2 Services - DFE Compose stack. Dotted paths are optional. Up: top of dfe-docker. Down: L4 Detail - Loader topic choice, L4 Detail - Loader and schema checks, L4 Detail - One console origin, L4 Detail - Two listeners on port 6000.
How data flows
- Push clients send to dfe-receiver over HTTP, Vector, Beats, OTLP, HEC, syslog or flow. dfe-fetcher pulls from REST APIs, databases and files. It idles until a fetcher source exists.
- On a
*-kafkaprofile both produce to a*_landtopic named after the event's_source. The name carries through character for character, sofilebeat-vectorgivesfilebeat-vector_landand a table that needs backticks in SQL. - A source with a transform gets its own instance. It reads
<source>_landand writes<source>_load. From then on the loader reads_loadinstead. Transforms run on Kafka profiles alone. - dfe-loader auto-discovers every topic ending in
_landor_loadand inserts into ClickHouse. dfe-archiver writes each source's landing topic to its archive, so archiving needs a Kafka profile. - On a
*-grpcprofile there is no broker and the receiver dialsdfe-loader:6000directly. - The DFE console sends every change through dfe-engine. The engine creates each table and topic and renders each app's config.
Create a source before you send it data. A loader that meets rows for a table it has no schema for buffers them, then dead-letters them.
Components
| Part | Role | Its page |
|---|---|---|
| dfe-receiver | Push ingest, every protocol, HTTP on :8080 | dfe-receiver |
| dfe-fetcher | Pull ingest from REST APIs, databases and files | dfe-fetcher |
| Source topic | The *_land topic each source writes | Broker |
| Transforms | VRL, Vector or compiled Elastic pipelines, one instance per source | vrl, vector, elastic |
| Transformed topic | The *_load topic a transform writes | Known issues |
| dfe-loader | Writes ClickHouse and hosts the gRPC Push listener | dfe-loader |
| ClickHouse | Every table, plus the stack's self-telemetry | Secrets and storage |
| dfe-archiver | Writes raw events to a filesystem, S3, MinIO, GCS or Azure Blob | dfe-archiver |
| Archive | The archiver's files | Secrets and storage |
| DFE console | dfe-ui and its Search, dfe-hyperdx, behind dfe-proxy | dfe-ui |
| dfe-engine | Config and schema API, the schema and topic authority | dfe-engine |
dfe-transform-splack and dfe-transform-wasm have repos but no service here.
External dependencies
| Dependency | Needed | Choices |
|---|---|---|
| Docker with Compose | always | one Linux host |
| Registry | always | the registry the stack pins, at the digests the Kubernetes path runs |
| Broker | on *-kafka profiles | Redpanda or Apache Kafka with KAFKA_BACKEND=apache (broker) |
| Object storage | for an archive past local disk | S3, MinIO, GCS, Azure Blob |
| OIDC provider | with the auth profile | any, through oauth2-proxy (auth profile) |
Deployment variants
A profile is <tier>-<transport>: slim-grpc, slim-kafka, single-grpc or single-kafka (profiles). slim is the core data path: receiver, loader, engine, console and Search. single-kafka adds the per-source apps and one archiver. There is no scale, because Compose can't scale out.
A profile declares its footprint through the clickhouse, core, kafbat, hyperdx, otel and auth keys, each overridable by its .env flag. Each footprint is a Compose profile:
| Compose profile | Services |
|---|---|
clickhouse | clickhouse |
kafka-apache | kafka-apache |
kafka-redpanda | kafka-redpanda, kafka-redpanda-config |
kafka-ui | kafka-ui (Kafbat) |
dfe | dlq-init, bearer-tokens-init, the config-check-<app> one-shots, archiver, fetcher, loader, receiver, every transform instance |
core | dfe-engine, dfe-hunt-runner, dfe-ui, dfe-proxy, the contract-<app> one-shots |
hyperdx | dfe-hyperdx, dfe-hyperdx-proxy, hyperdx-documentdb, hyperdx-documentdb-tls, dfe-dashboards |
otel | otel-collector |
auth | the three oauth2-proxy-* gates (auth-profile.md) |
Four limit tiers set CPU and memory ceilings (operating).
Kubernetes is the primary DFE path and Compose is for small environments. Three things differ on purpose:
- A new source's apps start when you run
make apply. Argo does that on Kubernetes. - Envoy's OIDC filters stay unconfigured, because Docker mode can't assume an issuer exists. The engine API still needs a login per route.
- Container logs reach the collector through Docker's
fluentdlog driver and the host's CPUs are the one host metric collected (observability).
Design considerations
Security. The console and its Search authenticate. The receiver's HTTP listener takes only bearer tokens once make post has made the ingest credential. The other ingest ports, Kafbat and the metrics ports ask for no login, so arm the auth profile or put the stack behind a VPN, a tunnel or a firewall (operating).
Reliability. Every app waits for dfe-engine to report healthy, which means its tables and topics exist. Before an app starts, a one-shot runs its config-check against the exact config it will use, so a broken config stops make up with the app's own error and not a restart loop.
Operations. Nothing restarts a container on its own. A change an app can't take in place is reported as restart required: make apply SERVICES=<app> (per-source apps).
Performance. The Compose stack is sized for one host. DFE_SERVICE_CPUS has a floor of 2.0 (operating).
Why it's built this way
Same images, same registry, same pins. Compose is safe to deploy because it runs the exact digests Kubernetes runs, pinned from the same stack definition.
dfe-engine renders each app's config. Compose runs no chart, so the engine merges each instance's overlay over the committed config/<app>/<transport>.yaml and writes the result to the dfe-app-config volume. Deployment facts stay in the committed file and nothing deployment-specific goes into the deploy repo.
dfe-engine alone owns the schema and topics. The schemas ride inside the engine image, so a schema change is an engine release and there's no schema pin here. scripts/tests/test_engine_only_schema_control.py fails the build on any DDL or topic step in this repo.
One transform per source. A source with a transform stops sharing main_land, so only a transform reading that source's topic sees it. That matches Kubernetes, which deploys one per source definition.
Diagram map
- Figure 1. L2 Services - DFE Compose stack, at the top of this page
What's next
- Try it: evaluating.
- Run it: operating, deploying and secrets and storage.
- Every setting: configuration.
- Change dfe-docker: developing and the Context section of CONTRIBUTING.md.