OpenSearch
What is OpenSearch?
OpenSearch is an open-source search and analytics engine. It stores, searches, and analyzes large volumes of structured and unstructured data with a RESTful API.
Use it for full-text search in applications, log and event analytics, and vector search. OpenSearch is a community-driven project under the Apache 2.0 license.
Deploy OpenSearch
- Create a new resource in Coolify and select OpenSearch from the service list.
- Click Deploy.
- Wait until the
opensearchservice shows as healthy. This can take about 1 minute. - Send requests to the domain of the service. The API requires HTTP basic authentication:
- Username:
admin - Password: the value of the
SERVICE_PASSWORD_OPENSEARCHenvironment variable.
- Username:
curl -u admin:<password> https://<your-domain>/_cluster/healthThis service does not include a GUI. Use the REST API or a client library.
Notes
- The server needs at least 2 GiB of RAM. The JVM heap is set to 512 MB, and the container uses about 1.2 GB of memory.
- To change the heap size, edit
OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512min the Docker Compose file. - OpenSearch runs as a single node (
discovery.type=single-node). Clustering is disabled. - TLS on the HTTP port is disabled in the container (
plugins.security.ssl.http.enabled=false), because the Coolify proxy handles TLS. - OpenSearch reads
SERVICE_PASSWORD_OPENSEARCHonly on the first start, to set the initialadminpassword. If you change the variable later, theadminpassword does not change. - Data is stored in the
opensearch-datavolume.
