0

I'm running a basic docker compose for nifi
(spinning on a Gitpod workspace) And I cant seem to be able to acces the NiFi UI

version: '3'
services:
  nifi:
    image: apache/nifi:latest
    container_name: nifi
    restart: unless-stopped
    network_mode: bridge
    ports:
      # HTTP
      - 8080:8080/tcp
      # HTTPS
      - 8443:8443/tcp

    environment:
      NIFI_WEB_HTTP_HOST: '0.0.0.0'
      NIFI_WEB_HTTP_PORT: 8080


Same with :

docker run --name nifi -p 8080:8080 -e NIFI_WEB_HTTP_HOST=0.0.0.0 -d apache/nifi:latest

enter image description here enter image description here enter image description here

What am I missing ?

Mehdi LAMRANI
  • 11,289
  • 14
  • 88
  • 130
  • Have you tried setting the `NIFI_WEB_HTTP_HOST` environment variable to `127.0.0.1` or the host IP? – UNOPARATOR May 26 '23 at 14:03
  • I just noticed that your _"Same with :"_ example is missing ` -e NIFI_WEB_HTTP_PORT=8080` which is not the same as port mapping. – UNOPARATOR May 26 '23 at 15:17

1 Answers1

1

You may want to try using port forwarding:

AXON
  • 183
  • 1
  • 5