diff --git a/docker/kafka-ui-traefik-proxy.yaml b/docker/kafka-ui-traefik-proxy.yaml new file mode 100644 index 0000000000..e95d7a049b --- /dev/null +++ b/docker/kafka-ui-traefik-proxy.yaml @@ -0,0 +1,27 @@ +--- +version: '3.8' +services: + traefik: + restart: always + image: traefik:v2.4 + container_name: traefik + command: + - --api.insecure=true + - --providers.file.directory=/etc/traefik + - --providers.file.watch=true + - --entrypoints.web.address=:80 + - --log.level=debug + ports: + - 80:80 + volumes: + - ./traefik:/etc/traefik + + kafka-ui: + container_name: kafka-ui + image: provectuslabs/kafka-ui:latest + ports: + - 8082:8080 + environment: + KAFKA_CLUSTERS_0_NAME: local + KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9092 + SERVER_SERVLET_CONTEXT_PATH: /kafka-ui diff --git a/docker/traefik/kafkaui.yaml b/docker/traefik/kafkaui.yaml new file mode 100644 index 0000000000..3d0cf089d7 --- /dev/null +++ b/docker/traefik/kafkaui.yaml @@ -0,0 +1,11 @@ +http: + routers: + kafkaui: + rule: "PathPrefix(`/kafka-ui/`)" + entrypoints: web + service: kafkaui + services: + kafkaui: + loadBalancer: + servers: + - url: http://kafka-ui:8080 \ No newline at end of file