Running NIFI in docker using docker-compose

Balvinder Singh
Oct 27, 2018 · 2 min read

Hey everyone, I will be sharing how you can run NIFI via docker-compose. Before starting let me tell you about NIFI, it is a software developed by Apache and available under open source license helps in data-flow, i.e. fetching data and sending data. It is like the processor of data, that takes input, process and give output, and vice versa.

The data processing be like getting data from some rest API, converting the fields to fields required, fetching specific fields or getting a single field. You can do this easily.

Applications of NIFI can be :

  1. Fetching data from API and pushing to API.
  2. Reading from a file and saving to file and vice versa.
  3. Processing data like renaming, ordering, sorting.
  4. Filtering data, converting, extracting data
  5. Execute scripts and much more.
  6. Pushing to the database like Cassandra, elastic and minio storage.

The applications are countless and very helpful for solving Big Data issues, also I forgot to tell if you are in Big data or just started, this is for you. The more you can know from the official site :

So now,for running it, you just need to have a compose file, that I am sharing below. Just copy paste the code and save as nifi.yml.

This is all you need to know to run NIFI as a docker-compose service. You can access it on address . If that not work , you can get address and port where nifi is running by command in terminal:

sudo docker ps

Output will be like

CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS                                          NAMES
068e48ded408 apache/nifi:latest "../scripts/" 47 seconds ago Up 34 seconds 8443/tcp, 10000/tcp,>8080/tcp nifi_nifi_1
62cb2f91685d bitnami/zookeeper:latest "/ …" 47 seconds ago Up 38 seconds 2181/tcp, 2888/tcp, 3888/tcp zookeeper

so you can see, the highlighted bold text , is address with port where NIFI is running . So this is all for now, stay connected for more posts on NIFI as i will work along on NIFI. Also visit for more posts at Tekraze:

Balvinder Singh

Written by

Senior Software Engineer at working as FullStack and DevOps. Tech Blogger at Here to share my experiences of coding with you all…

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade