I am using "wurstmeister/kafka" docker image with latest tag. Whenever I tried to stop & start the kafka container, it will start container with default configuration. How can I mount volume, so that data persists even when container stops or automatically restarts.
All data saved in logs file inside provided folder in volume, but when container restarts it doesn't load data from that folder & starts fresh copy.
I have tried following :
volumes:
- /kafka:/kafka-volume
When container restarts, all topics should be persists as it is and with same partitions created earlier.
Any help would be appreciable.