{"id":19206775,"url":"https://github.com/hausgold/docker-opensearch","last_synced_at":"2026-05-05T13:33:38.337Z","repository":{"id":89453636,"uuid":"567281978","full_name":"hausgold/docker-opensearch","owner":"hausgold","description":"mDNS enabled opensearchproject/opensearch","archived":false,"fork":false,"pushed_at":"2024-11-13T19:37:29.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-04T15:34:54.142Z","etag":null,"topics":["docker","docker-image","elasticsearch","mdns","opensearch","oss","zeroconfig"],"latest_commit_sha":null,"homepage":"","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}},"created_at":"2022-11-17T13:14:08.000Z","updated_at":"2024-11-13T19:37:33.000Z","dependencies_parsed_at":"2024-10-22T08:32:30.957Z","dependency_job_id":null,"html_url":"https://github.com/hausgold/docker-opensearch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hausgold%2Fdocker-opensearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hausgold%2Fdocker-opensearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hausgold%2Fdocker-opensearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hausgold%2Fdocker-opensearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hausgold","download_url":"https://codeload.github.com/hausgold/docker-opensearch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240280825,"owners_count":19776414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","elasticsearch","mdns","opensearch","oss","zeroconfig"],"created_at":"2024-11-09T13:16:58.750Z","updated_at":"2026-05-05T13:33:38.332Z","avatar_url":"https://github.com/hausgold.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![mDNS enabled opensearchproject/opensearch](https://raw.githubusercontent.com/hausgold/docker-opensearch/master/docs/assets/project.svg)\n\n[![Continuous Integration](https://github.com/hausgold/docker-opensearch/actions/workflows/package.yml/badge.svg?branch=master)](https://github.com/hausgold/docker-opensearch/actions/workflows/package.yml)\n[![Source Code](https://img.shields.io/badge/source-on%20github-blue.svg)](https://github.com/hausgold/docker-opensearch)\n[![Docker Image](https://img.shields.io/badge/image-on%20docker%20hub-blue.svg)](https://hub.docker.com/r/hausgold/opensearch/)\n\nThis Docker images provides the [opensearchproject/opensearch](https://hub.docker.com/r/opensearchproject/opensearch) image as base\nwith the mDNS/ZeroConf stack on top. So you can enjoy [OpenSearch](https://opensearch.org/) while\nit is accessible by default as *opensearch.local*. (Port 9200, 9600, 80 via proxy)\n\n- [Requirements](#requirements)\n- [Getting starting](#getting-starting)\n- [docker-compose usage example](#docker-compose-usage-example)\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\nYou just need to run it like that, to get a working opensearch:\n\n```bash\n$ docker run --rm hausgold/opensearch\n```\n\nThe port 9200 is proxied by haproxy to port 80 to make *opensearch.local*\ndirectly accessible. The port 9200 and 9600 are untouched.\n\nCheckout the [working with plugins\ndocumentation](https://opensearch.org/docs/latest/opensearch/install/docker/#working-with-plugins)\nif you have to deal with custom plugins.\n\nIn order to enable the [Elasticsearch version\ncompatibility](https://opensearch.org/blog/technical-posts/2021/10/moving-from-opensource-elasticsearch-to-opensearch/)\nadd this environment variable:\n\n```\ncompatibility.override_main_response_version='true'\n```\n\n## docker-compose usage example\n\n```yaml\nservices:\n  opensearch:\n    image: hausgold/opensearch\n    environment:\n      # Mind the .local suffix\n      MDNS_HOSTNAME: opensearch.test.local\n      OPENSEARCH_JAVA_OPTS: -Xms128m -Xmx128m\n      discovery.type: single-node\n      compatibility.override_main_response_version: 'false'\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\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/opensearch\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/opensearch\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-opensearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhausgold%2Fdocker-opensearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhausgold%2Fdocker-opensearch/lists"}