Created
April 28, 2026 17:35
-
-
Save rodcordeiro/e36f69431a1dcccbe0c1cf47b99dba8a to your computer and use it in GitHub Desktop.
Nifi Docker compose file
This file contains hidden or 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
| services: | |
| nifi: | |
| container_name: nifi | |
| image: "apache/nifi:latest" # latest image as of 2021-11-09. | |
| restart: on-failure | |
| ports: | |
| - "8443:8443" | |
| - "8091:8080" | |
| environment: | |
| - NIFI_WEB_HTTP_PORT=8080 | |
| # - NIFI_CLUSTER_IS_NODE=true | |
| # - NIFI_CLUSTER_NODE_PROTOCOL_PORT=8082 | |
| # # - NIFI_ZK_CONNECT_STRING=myzookeeper:2181 | |
| # - NIFI_ELECTION_MAX_WAIT=30 sec | |
| # - NIFI_SENSITIVE_PROPS_KEY='12345678901234567890A' | |
| healthcheck: | |
| test: "${DOCKER_HEALTHCHECK_TEST:-curl localhost:8091/nifi/}" | |
| interval: "60s" | |
| timeout: "3s" | |
| start_period: "5s" | |
| retries: 5 | |
| volumes: | |
| - ./nifi/database_repository:/opt/nifi/nifi-current/database_repository | |
| - ./nifi/flowfile_repository:/opt/nifi/nifi-current/flowfile_repository | |
| - ./nifi/content_repository:/opt/nifi/nifi-current/content_repository | |
| - ./nifi/provenance_repository:/opt/nifi/nifi-current/provenance_repository | |
| - ./nifi/state:/opt/nifi/nifi-current/state | |
| - ./nifi/logs:/opt/nifi/nifi-current/logs | |
| # uncomment the next line after copying the /conf directory from the container to your local directory to persist NiFi flows | |
| #- ./nifi/conf:/opt/nifi/nifi-current/conf | |
| network_mode: bridge | |
| # networks: | |
| # - my_persistent_network |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment