NiFi cluster sandbox on Docker
- Oct 5, 2026 8:38 AM UTC
- 2 replies
- 13820 views
- Translate All
The NiFi community maintains a NiFi Docker image that comes very handy when you want to play with NiFi on your laptop. When you develop flows to run in a NiFi cluster with 2 or more nodes, though, there are things that you need to check and test differently from a single-node NiFi cluster.
Recently,
I found the idea interesting and spent some time working out the missing details. I also automated the TLS certificate creation and added a load-balancer to the compose configuration. Now, to use your own NiFi sanbox cluster, all you need to do is this:
- Download the docker-compose.yml file (see repo link below)
- Run "docker compose up -d"
- Connect to your own local 2-node cluster on http://localhost:8443/nifi.
I've been pretty happy with the result and that's what I now use on my laptop when I want to test something out quickly.
I hope this can be useful for others too: https://github.com/asdaraujo/nifi-stuff/tree/main/nifi-docker-compose
Cheers,
André

