Skip to content

Instantly share code, notes, and snippets.

@balvinder294
Created October 27, 2018 16:26
Show Gist options
  • Save balvinder294/e767187e7c122165e19361fe02dd81a7 to your computer and use it in GitHub Desktop.
Save balvinder294/e767187e7c122165e19361fe02dd81a7 to your computer and use it in GitHub Desktop.
Docker-compose for NIFI
version: "3"
services:
zookeeper: # the configuration manager
hostname: zookeeper
container_name: zookeeper
image: 'bitnami/zookeeper:latest'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
nifi:
image: apache/nifi:latest
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