The whole DFE stack on one host with Docker Compose, from pinned release images or local builds.
- Runs DFE on one box, an edge site, a partner deployment or a developer's test rig. Compose is a supported production target for small environments. Kubernetes stays the primary path, so where both would work, choose Kubernetes.
- Pins every image by digest from a certified DFE stack release with
make stack. With a pin unset the stack will not start rather than pulllatest. - Starts from the registry images with
make upor builds chosen components from source withmake dev. - Runs Kafka or Redpanda as the broker, with opt-in overlays for TLS, storage and an oauth2-proxy
authprofile. - Checks that the running stack moves data from the ingest edge to a ClickHouse row with
make post, which fails if an enabled run asserts nothing.DFE_POST_ENABLED=falseskips it. - Loads seed sources, rules and hunts into a running engine with
make sources,make rulesandmake hunts.
It consumes the same images from the same registry as the Kubernetes path, pinned from the same stack release. There is no promotion step and no Compose-specific build.
With only Docker, at the min_engine and min_compose each release's quickstart.json names, on macOS, Linux or Windows:
docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:compose up -d
docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:compose run --rm secrets-init loginThe default stack idles at about 2.5 GB of RAM. Its memory limits are sized for a 16 GB box, see configuration.
Point your browser to http://localhost:3000 and log in with the name and password the second command prints. The console makes you change it at first login. To choose your own, see evaluating. The demo is a throwaway stack of its own that seeds its sources and streams firewall syslog through them beside two fetchers:
docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo up -d
docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo run --rm secrets-init logindown with the same -f stops either one and down -v deletes its data.
From a clone, on a host with Docker Compose v2, make, git and Python 3:
git clone https://github.com/hyperi-io/dfe-docker && cd dfe-docker
make up # single, the newest published stable stack
make up PROFILE=slim # the lighter gRPC profile
make up VERSION=<stack version> # an older stack
make demo # the same stack with the demo stream on it
make down # stop everything, keep the datamake up creates .env, mints the secrets, pins the newest published stable stack and prints the console URL and login. PROFILE= and VERSION= are written to .env, so later runs keep them.
There are two profiles. slim is the core data path over gRPC: receiver, loader, engine, console, HyperDX, ClickHouse and the self-monitoring collector. single runs Kafka and adds the archiver, Kafbat and the per-source apps. The engine runs as docker-slim or docker-single to match, as on Kubernetes. There is no scale tier, because Compose cannot scale out. KAFKA_BACKEND=apache swaps Redpanda, which is BSL, for Apache Kafka on single. The old slim-grpc, single-kafka and kafka-* names are refused with the profile that replaces them (profiles).
| Profile | Containers | Working set | Sum of container limits |
|---|---|---|---|
slim |
11 | 2.1 GiB | 11 GiB |
single |
15 | 2.5 GiB | 15.8 GiB |
Measured on a Linux host with docker stats, as the peak of eight samples taken while the power-on self test ran, with no source bound. That is a light load, so ClickHouse and the broker grow under real ingest. Each source with a transform adds a container limited to 768 MiB. The limit sum is the most the containers may claim together and not what they use, so size a laptop from the working set plus the OS and your editor. Docker Desktop on Windows or Mac was not measured. Its VM memory (Settings, Resources) has to cover the working set.
single is slim plus four containers: Redpanda, Kafbat, the archiver and the fetcher. They add 0.4 GiB to the working set and 4.75 GiB to the limits, because at this load Redpanda and Kafbat use about 0.3 GiB each against limits of 2.5 and 0.75 GiB. The per-container figures are in docs/profiles.md.
The targets in #284 are missed for both profiles. slim has 11 GiB of limits against a target of 7, and single has 15.75 GiB against 13. Both working sets are under the issue's estimates of 4-5 and 8-9 GB. The old slim-kafka maps to single, which adds the four containers above.
Each service reads its own env/<service>.env, created from env.example/ by make init, which never overwrites a file and reports the keys an old .env is missing. Only the console and Search authenticate people, while 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 put the stack behind a VPN, a tunnel or a firewall before anyone you have not met can reach it or arm the auth profile. Every variable, the port map and the image list are in docs/configuration.md.
Pick the page for what you are doing:
- docs/evaluating.md: a first look, a demo, a proof of concept.
- docs/operating.md: running it where other people depend on it and exactly what is exposed.
- docs/deploying.md: standing a deployment up or moving one to a newer certified stack.
- docs/developing.md: using the stack as a test rig for a component you are changing.
- docs/troubleshooting.md, then known issues and common failures.
- docs/observability.md: health endpoints, self-telemetry and what a passing self test proves.
- docs/profiles.md and docs/architecture.md: how the profiles and the pieces fit together.
The suite's published docs are at https://dfe.docs.hyperi.io and this repository's pages at https://dfe.docs.hyperi.io/dfe-docker/.
How to work in this repo, the commands that test a change and what tends to bite are in CONTRIBUTING.md. A question that is not a bug goes in a new issue.
Open bugs: this repo | whole DFE suite
BUSL-1.1, see LICENSE.