{"id":19206770,"url":"https://github.com/hausgold/docker-kafka","last_synced_at":"2026-04-21T10:02:12.810Z","repository":{"id":89453589,"uuid":"161481702","full_name":"hausgold/docker-kafka","owner":"hausgold","description":"mDNS enabled wurstmeister/kafka image","archived":false,"fork":false,"pushed_at":"2026-04-13T06:27:51.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2026-04-13T08:19:09.758Z","etag":null,"topics":["docker","docker-image","kafka","mdns","oss","zeroconf"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/hausgold/kafka/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hausgold.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-12-12T11:58:34.000Z","updated_at":"2026-04-13T06:27:55.000Z","dependencies_parsed_at":"2024-05-07T08:28:14.987Z","dependency_job_id":"eb823394-24be-4c30-9766-e1452b57bb7c","html_url":"https://github.com/hausgold/docker-kafka","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hausgold/docker-kafka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hausgold%2Fdocker-kafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hausgold%2Fdocker-kafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hausgold%2Fdocker-kafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hausgold%2Fdocker-kafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hausgold","download_url":"https://codeload.github.com/hausgold/docker-kafka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hausgold%2Fdocker-kafka/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32086815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","kafka","mdns","oss","zeroconf"],"created_at":"2024-11-09T13:16:57.168Z","updated_at":"2026-04-21T10:02:12.756Z","avatar_url":"https://github.com/hausgold.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![mDNS enabled Kafka](https://raw.githubusercontent.com/hausgold/docker-kafka/master/docs/assets/project.svg)\n\n[![Continuous Integration](https://github.com/hausgold/docker-kafka/actions/workflows/package.yml/badge.svg?branch=master)](https://github.com/hausgold/docker-kafka/actions/workflows/package.yml)\n[![Source Code](https://img.shields.io/badge/source-on%20github-blue.svg)](https://github.com/hausgold/docker-kafka)\n[![Docker Image](https://img.shields.io/badge/image-on%20docker%20hub-blue.svg)](https://hub.docker.com/r/hausgold/kafka/)\n\nThis Docker images provides the\n[apache/kafka](https://hub.docker.com/r/apache/kafka/) image as base with the\nmDNS/ZeroConf stack on top. (2.x tags used\n[wurstmeister/kafka](https://hub.docker.com/r/wurstmeister/kafka/), which\nrequired Zookeeper) So you can enjoy [Apache Kafka](https://kafka.apache.org)\nwhile it is accessible by default as *kafka.local* (Port 9092) as a single-node\ncluster using KRaft without Zookeeper.\n\n- [Requirements](#requirements)\n- [Getting starting](#getting-starting)\n- [Host configs](#host-configs)\n- [Configure a different mDNS hostname](#configure-a-different-mdns-hostname)\n- [Other top level domains](#other-top-level-domains)\n- [Further reading](#further-reading)\n\n## Requirements\n\n* Host enabled Avahi daemon\n* Host enabled mDNS NSS lookup\n\n## Getting starting\n\nTo get a single broker Apache Kafka service up and running create a\n`docker-compose.yml` and insert the following snippet (based on the [original\nexample](https://github.com/apache/kafka/blob/trunk/docker/examples/jvm/single-node/plaintext/docker-compose.yml)):\n\n```yaml\nservices:\n  kafka:\n    image: hausgold/kafka\n    environment:\n      MDNS_HOSTNAME: kafka.local\n      # See: http://bit.ly/2UDzgqI for Kafka downscaling\n      KAFKA_HEAP_OPTS: -Xmx256M -Xms32M\n    ulimits:\n      # Due to systemd/pam RLIMIT_NOFILE settings (max int inside the\n      # container), the Java process seams to allocate huge limits which result\n      # in a +unable to allocate file descriptor table - out of memory+ error.\n      # Lowering this value fixes the issue for now.\n      #\n      # See: http://bit.ly/2U62A80\n      # See: http://bit.ly/2T2Izit\n      nofile:\n        soft: 100000\n        hard: 100000\n```\n\nAfterwards start the service with the following command:\n\n```bash\n$ docker-compose up\n```\n\n## Host configs\n\nInstall the nss-mdns package, enable and start the avahi-daemon.service. Then,\nedit the file /etc/nsswitch.conf and change the hosts line like this:\n\n```bash\nhosts: ... mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns ...\n```\n\n## Configure a different mDNS hostname\n\nThe magic environment variable is *MDNS_HOSTNAME*. Just pass it like that to\nyour docker run command:\n\n```bash\n$ docker run --rm -e MDNS_HOSTNAME=something.else.local hausgold/kafka\n```\n\nThis will result in *something.else.local*.\n\nYou can also configure multiple aliases (CNAME's) for your container by\npassing the *MDNS_CNAMES* environment variable. It will register all the comma\nseparated domains as aliases for the container, next to the regular mDNS\nhostname.\n\n```bash\n$ docker run --rm \\\n  -e MDNS_HOSTNAME=something.else.local \\\n  -e MDNS_CNAMES=nothing.else.local,special.local \\\n  hausgold/kafka\n```\n\nThis will result in *something.else.local*, *nothing.else.local* and\n*special.local*.\n\n## Other top level domains\n\nBy default *.local* is the default mDNS top level domain. This images does not\nforce you to use it. But if you do not use the default *.local* top level\ndomain, you need to [configure your host avahi][custom_mdns] to accept it.\n\n## Further reading\n\n* Docker/mDNS demo: https://github.com/Jack12816/docker-mdns\n* Archlinux howto: https://wiki.archlinux.org/index.php/avahi\n* Ubuntu/Debian howto: https://wiki.ubuntuusers.de/Avahi/\n\n[custom_mdns]: https://wiki.archlinux.org/index.php/avahi#Configuring_mDNS_for_custom_TLD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhausgold%2Fdocker-kafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhausgold%2Fdocker-kafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhausgold%2Fdocker-kafka/lists"}