1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/nifi/docker-compose-cluster.yml
2020-01-10 11:24:28 +08:00

26 lines
666 B
YAML

nifi:
image: apache/nifi
ports:
- "8080:8080"
- "8082:8082"
- "10000:10000"
environment:
- NIFI_WEB_HTTP_PORT=8080
- NIFI_CLUSTER_IS_NODE=true
- NIFI_CLUSTER_NODE_PROTOCOL_PORT=8082
- NIFI_REMOTE_INPUT_SOCKET_PORT=10000
- NIFI_ZK_CONNECT_STRING=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
- NIFI_ELECTION_MAX_WAIT=1 min
- NIFI_ELECTION_MAX_CANDIDATES=2
- NIFI_JVM_HEAP_INIT=512m
- NIFI_JVM_HEAP_MAX=1g
extra_hosts:
- zookeeper1:10.0.0.21
- zookeeper2:10.0.0.22
- zookeeper3:10.0.0.23
# nifi1:10.0.0.11
- nifi2:10.0.0.12
- nifi3:10.0.0.13
hostname: nifi1
restart: unless-stopped