An example of several proxies in front of Apache NiFi, all running in docker containers.
From the clone of the Apache NiFi repository, on the appropriate branch:
mvn clean install -Pcontrib-check
mvn install -pl nifi-docker/dockermaven/pom.xml -Pdocker
docker images
Confirm the NiFi 1.9.0-SNAPSHOT docker image exists:$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE apache/nifi 1.9.0-SNAPSHOT-dockermaven 119e30c23439 5 minutes ago 1.82GB
./scripts/start.sh
docker-compose -f knox-dev-docker/docker-compose.yml logs -f
docker-compose -f docker-compose-anonymous-nifi.yaml logs -f
- NiFi is available
- on the host at: http://localhost:9090/nifi/
- through Traefik at: http://nifi.docker.localhost/traefik/nifi/
- through Knox at: https://localhost:8443/gateway/nifi/nifi-app/nifi/
- through Nginx at: http://nginx.docker.localhost:8081/nifi/
- Go to url: http://nifi.docker.localhost/traefik/nifi/
Traefik uses X-Forwarded-Host/X-Forwarded-Prefix:- Add several processors and connect them
- Verify that the processors can be moved on the canvas
- Open the processor configuration for any of the processors
- View Usage for any of the processors on the canvas
- Go to url: https://localhost:8443/gateway/nifi/nifi-app/nifi
Knox uses X-Forwarded-Host/X-Forwarded-Context:- Add several processors and connect them
- Verify that the processors can be moved on the canvas
- Open the processor configuration for any of the processors
- View Usage for any of the processors on the canvas
- Go to url: http://nginx.docker.localhost:8081/nifi/
Nginx is configured to use X-ProxyHost/X-ProxyContextPath:- Add several processors and connect them
- Verify that the processors can be moved on the canvas
- Open the processor configuration for any of the processors
- View Usage for any of the processors on the canvas
./scripts/stop.sh