Sonic is a fast, lightweight, and schema-less search backend designed as a simple alternative to resource-intensive systems like Elasticsearch. It is engineered for high performance, responding to queries in microseconds while consuming only a few megabytes of RAM and maintaining a low CPU footprint. This makes it an ideal choice for applications where resource efficiency is critical.
Instead of being a document index, Sonic functions as an identifier index. When you perform a query, it returns a list of object IDs that match your search terms. You can then use these IDs to retrieve the full documents from your primary database. This approach keeps the index small and fast.
Key capabilities include:
services:
sonic:
image: valeriansaliou/sonic:latest
container_name: sonic
restart: unless-stopped
ports:
- "1491:1491"
volumes:
- ./config/sonic.cfg:/etc/sonic.cfg
- ./data:/var/lib/sonic/store# Sonic uses a configuration file (sonic.cfg) for its settings and credentials (such as auth_password).
# No environment variables are required for this docker-compose.yml.Auto-fetched about 11 hours ago
Auto-fetched about 11 hours ago