0

Here's my docker-compose:

version: '3'
services:  
  nodered:
    container_name: nodered
    image: nodered/node-red
    ports:
      - "1880:1880"
    volumes:
      - ./nodered:/data
    depends_on:
      - mosquitto
    environment:
      TZ: "America/Toronto"
    restart: always
  mosquitto:
    image: eclipse-mosquitto
    container_name: mqtt
    restart: always
    ports:
      - "1883:1883"
    volumes:
      - "./mosquitto/config:/mosquitto/config"
      - "./mosquitto/data:/mosquitto/data"
      - "./mosquitto/log:/mosquitto/log"
    environment:
      - TZ=America/Toronto
    user: "${PUID}:${PGID}"
  portainer:
    ports:
      - "9000:9000"
    container_name: portainer
    restart: always
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "./portainer/portainer_data:/data"
    image: portainer/portainer-ce
  zookeeper:
    image: zookeeper
    container_name: zookeeper
    ports:
      - "2181:2181"
    volumes:
      - "zookeeper_data:/bitnami"
    environment:
      - ALLOW_ANONYMOUS_LOGIN=yes
  kafka:
    image: bitnami/kafka
    container_name: kafka
    ports:
      - "9092:9092"
    volumes:
      - "kafka_data:/bitnami"
    environment:
      - KAFKA_BROKER_ID=1
      - KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
      - KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
      - KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
      - ALLOW_PLAINTEXT_LISTENER=yes
    depends_on:
      - zookeeper
    restart: on-failure
  cmak:
    image:  hlebalbau/kafka-manager
    container_name: cmak
    restart: always
    depends_on:
      - kafka
      - zookeeper
    ports:
      - "9080:9080"
    environment:
      - ZK_HOSTS=zookeper:2181
      - APPLICATION_SECRET=letmein
    command: bin/cmak -Dconfig.file=/opt/cmak/conf/application.conf -Dhttp.port=9080

volumes:
  zookeeper_data:
    driver: local
  kafka_data:
    driver: local

My port 9000 is already used by Portainer and it works properly, but when I'm trying to run Kafka manager on 9080, I'm getting this error without any further explanation:

nodered      | 14 Sep 21:59:41 - [info] Starting flows
nodered      | 14 Sep 21:59:41 - [info] Started flows
cmak         | Oops, cannot start the server.
cmak         | java.lang.RuntimeException: No application loader is configured. Please configure an application loader either using the play.application.loader configuration property, or by depending on a module that configures one. You can add the Guice support module by adding "libraryDependencies += guice" to your build.sbt.
cmak         |  at scala.sys.package$.error(package.scala:30)
cmak         |  at play.api.ApplicationLoader$.play$api$ApplicationLoader$$loaderNotFound(ApplicationLoader.scala:44)
cmak         |  at play.api.ApplicationLoader$.apply(ApplicationLoader.scala:70)
cmak         |  at play.core.server.ProdServerStart$.start(ProdServerStart.scala:50)
cmak         |  at play.core.server.ProdServerStart$.main(ProdServerStart.scala:25)
cmak         |  at play.core.server.ProdServerStart.main(ProdServerStart.scala)

I have a feeling it's either my path to kafka-manager is wrong or I might have to expose the hostname on my kafka container...

fneron
  • 1,057
  • 3
  • 15
  • 39

0 Answers0