Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
A distributed search and analytics engine on Apache Lucene with a JSON REST API, full-text and vector search and aggregations. The official Docker image and default distribution ship under the Elastic License 2.0, which is source-available and not an OSI open-source licence: among other limits it forbids offering the software to others as a hosted or managed service. The source code outside x-pack can alternatively be taken under AGPL-3.0 or SSPL-1.0, but that choice applies to the source, not to the image. Kibana, the web UI, is a separate image and is not part of this install.
Runs on a VPS from $24/mo (Kamatera 8GB, 8 GB RAM) · prices checked Nov 2026
Fits home hardware (1,414 MB measured idle, RAM only): Raspberry Pi 4 (4 GB) (arm64 untested), Raspberry Pi 5 (8 GB) (arm64 untested), Repurposed laptop (8 GB), Intel N100 mini PC (16 GB), AMD Ryzen mini PC (32 GB).
Paid link — we earn a commission if you shop through it.
Run these commands on your server:
# Elasticsearch single node, API only — based on Elastic's "Start a single-node cluster in Docker" docs, pinned to 9.5.7 (image licence: Elastic License 2.0)
# Changed from upstream's docker run: Compose, a 2 GB container limit, named volumes for data and config (certificates and keystore), and a generated elastic password
mkdir elasticsearch && cd elasticsearch
echo "ELASTIC_PASSWORD=$(openssl rand -hex 16)" > .env
# upstream requires vm.max_map_count of 1048576 (persist it in /etc/sysctl.conf to survive a reboot)
sudo sysctl -w vm.max_map_count=1048576
cat > docker-compose.yml <<'EOF'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:9.5.7
restart: unless-stopped
mem_limit: 2g
environment:
discovery.type: single-node
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD}
ulimits:
nofile:
soft: 65535
hard: 65535
ports:
- "9200:9200"
volumes:
- es-data:/usr/share/elasticsearch/data
- es-config:/usr/share/elasticsearch/config
volumes:
es-data:
es-config:
EOF
docker compose up -d
. ./.env
timeout 300 bash -c "until curl -skf -u elastic:$ELASTIC_PASSWORD https://localhost:9200/_cluster/health; do sleep 5; done"
# → https://SERVER_IP:9200 — HTTPS with an auto-generated certificate (curl -k, or copy config/certs/http_ca.crt out of the container); user elastic, password in .envElasticsearch used 1414 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.10.1 (first boot, measured Nov 2026). We list a minimum of 4096 MB.
The Elasticsearch install snippet is marked verified on Ubuntu 26.04 (Nov 2026).