Basic AKHQ running with docker (HTTP)
Introduction
This article describes basic case of running AKHQ with docker. All the code is available on my GitHub.
Specification:
- Protocol: HTTP
- AKHQ authorization: NO
Requirements:
- internet access - to download AKHQ docker image,
- installed docker - to run downloaded image,
- running kafka - visible within any connected network interface.
Configuration
First of all we have to create YAML file - to tell AKHQ where is our kafka running.
akhq: ui-options: topic-data: sort: Newest connections: local: properties: bootstrap.servers: "localhost:9092"
Then just run AKHQ docker image (on port 1790) with previously created YAML config:
docker run -it -p 1790:8080 --name akhq_basic_container -v application-basic.yml:/app/application.yml tchiotludo/akhq
Once container is created you can start simple by:
docker container start akhq_basic_container
All AKHQ config examples can be found here.