Skip to content

Instantly share code, notes, and snippets.

@kevdoran
Created October 24, 2018 21:39
Show Gist options
  • Save kevdoran/2892004ccbfbb856115c8a756d9d4538 to your computer and use it in GitHub Desktop.
Save kevdoran/2892004ccbfbb856115c8a756d9d4538 to your computer and use it in GitHub Desktop.
NiFi Reverse Proxy Traefik example
#
# to use this, run `docker-compose up` in the directory holding this gist.
# or wget/curl the file and pipe it it into `docker-compose up`
#
version: "3.5"
services:
reverse-proxy:
image: traefik # The official Traefik docker image
command: --api --docker # Enables the web UI and tells Traefik to listen to docker
ports:
- "80:80" # The HTTP port
- "8080:8080" # The Web UI (enabled by --api)
networks:
- demo
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
registry:
image: apache/nifi-registry:0.3.0
ports:
- "18080" # UI
networks:
- demo
labels:
traefik.frontend.rule: "Host:registry.docker.localhost"
nifi:
image: apache/nifi:1.7.1
ports:
- "8080" # UI
- "10000" # Site-to-Site Input Port
networks:
- demo
labels:
traefik.frontend.rule: "Host:nifi.docker.localhost"
networks:
demo:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment