Skip to content

Instantly share code, notes, and snippets.

@lloydowen
Created May 18, 2021 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lloydowen/4ed45656a84486862eb15ed30447ff38 to your computer and use it in GitHub Desktop.
Save lloydowen/4ed45656a84486862eb15ed30447ff38 to your computer and use it in GitHub Desktop.
Apache NiFi Demo/Test
version: "3"
services:
zookeeper:
hostname: zookeeper
container_name: zookeeper
image: 'bitnami/zookeeper:latest'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
nifi:
image: apache/nifi:latest
ports:
- 8080
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
deploy:
resources:
limits:
cpus: 1
memory: 2G
haproxy:
hostname: haproxy
container_name: haproxy
image: dockercloud/haproxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- nifi
links:
- nifi
ports:
- 80:80
- 9001:9001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment