Skip to content

Instantly share code, notes, and snippets.

@pawndev
Last active July 10, 2023 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save pawndev/5603d62fe7da5ba2ddb9a2eb23a26f33 to your computer and use it in GitHub Desktop.
Save pawndev/5603d62fe7da5ba2ddb9a2eb23a26f33 to your computer and use it in GitHub Desktop.
Apache Nifi docker-compose local test

docker compose nifi

To launch this project, simply use the docker-compose cli

docker-compose up

Wait a couple of seconds, then execute the next command :

docker-compose port nifi 8080

It'll give you a port on your computer to access the nifi web-ui

version: "3"
services:
zookeeper:
hostname: zookeeper
container_name: zookeeper
image: 'bitnami/zookeeper:latest'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
nifi:
image: apache/nifi:1.9.2
ports:
- 8080 # Unsecured HTTP Web Port
environment:
- NIFI_WEB_HTTP_PORT=8080
- NIFI_CLUSTER_IS_NODE=true
- NIFI_CLUSTER_NODE_PROTOCOL_PORT=8082
- NIFI_ZK_CONNECT_STRING=zookeeper:2181
- NIFI_ELECTION_MAX_WAIT=1 min
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment