Skip to content

Instantly share code, notes, and snippets.

@geoHeil
Created June 10, 2020 19:49
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 geoHeil/7e7426a4d2b2fd363c036d9b12069598 to your computer and use it in GitHub Desktop.
Save geoHeil/7e7426a4d2b2fd363c036d9b12069598 to your computer and use it in GitHub Desktop.
version: "3"
services:
nifi:
image: apache/nifi:1.11.4
ports:
- 8080: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
links:
- zookeeper
- elasticsearch
zookeeper: #https://github.com/confluentinc/cp-all-in-one/blob/5.5.0-post/cp-all-in-one/docker-compose.yml#L5
image: confluentinc/cp-zookeeper:5.5.0
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.1
container_name: elasticsearch
hostname: elasticsearch
environment:
- "discovery.type=single-node"
- ELASTICSEARCH_USERNAME=admin
- ELASTICSEARCH_PASSWORD=admin
- xpack.security.enabled=false
ports:
- 9200:9200
- 9300:9300
links:
- broker
kibana:
image: docker.elastic.co/kibana/kibana:7.7.1
container_name: kibana
environment:
- ELASTICSEARCH_URL="http://elasticsearch:9200"
- ELASTICSEARCH_USERNAME=admin
- ELASTICSEARCH_PASSWORD=admin
- xpack.security.enabled=false
ports:
- 5601:5601
links:
- elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment