Loading
In this post we setup Kafkawize and Apache Cassandra on docker and access.
Docker images of Kafkawize are available at: https://hub.docker.com/u/kafkawize
Follow the below steps
version: '2'
services:
clusterapi-1:
image: kafkawize/kw_clusterapi:latest
ports:
- "9343:9343"
networks:
- kafka
extra_hosts:
- "moby:127.0.0.1"
uiapi-1:
image: kafkawize/kw_uiapi:latest
hostname: localhost
networks:
- kafka
environment:
CUSTOM_DB_STORETYPE: cassandra
CUSTOM_CASSANDRADB_URL: cassandra-1
CUSTOM_CLUSTERAPI_URL: http://clusterapi-1:9343
ports:
- "9097:9097"
extra_hosts:
- "moby:127.0.0.1"
networks:
kafka:
Create a cassandra_docker_compose.yml with the below content which contains docker image of Apache Cassandra
version: '2'
services:
cassandra-1:
image: cassandra:latest
ports:
- "9042:9042"
networks:
- kafka
extra_hosts:
- "moby:127.0.0.1"
networks:
kafka:
To run the docker compose file, run the below command where the above file is saved.
docker-compose -f .\cassandra_docker_compose.yml up
docker-compose -f .\kafkawize_docker_compose.yml up
Verify processes
docker ps
We can see the running containers of Cassandra, Kw Cluster Api and UI api applications.
You can now access Kafkawize with the below url
http://localhost:9097/kafkawize
Default Credentials available to access Kafkawize
uiuser1/user USER Team1
uiuser2/user USER Team2
uiuser3/user USER Team3
uiuser4/user ADMIN Team1
uiuser5/user ADMIN Team2
uiuser6/user ADMIN Team3
superuser/user SUPERUSER Team2
docker exec -ti <docker_container_id> /bin/bash
So in this post we learnt how to run kafkawize on docker by using Apache Cassandra as the metastore.
Documentation is also available :
https://kafkawize.readthedocs.io/en/latest/docker.html