Created
May 18, 2021 08:59
-
-
Save lloydowen/4ed45656a84486862eb15ed30447ff38 to your computer and use it in GitHub Desktop.
Apache NiFi Demo/Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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