Self-host Apache Solr with Levelrail
The Apache Solr search platform on the official image, with a persistent volume. The admin interface has no login, so keep it private or put it behind an authenticating proxy before adding a public domain. Other services in this project reach it at solr:8983.
- Authorapache
- LicenceApache-2.0
- Memory1 GiB
- Services1
How to self-host Apache Solr
-
Pull the images
One image is pulled on your server.
Show images
solr:9.11.0
-
Create the app
One service starts in a single Compose app, with 1 named volume mount for your data, on port 8983.
-
Fill in the secrets
You do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
After the first start
- Open the admin interface and create a core, or run the solr create command in the container's console.
Apache Solr requirements
- Memory
- About 1 GiB
- Architectures
- amd64 unknown, arm64 unknown
- Ports
- 8983
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- Apache-2.0, permissive license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Apache Solr. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the Apache Solr docs page.
Deploy Apache Solr your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy Apache Solr from the CLI
levelrail-cli templates deploy solr --name my-solr Deploy Apache Solr with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/solr/deploy Apache Solr configuration
Apache Solr services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| solr | solr:9.11.0 | 8983 | solr_data -> /var/solr |
Apache Solr environment variables
The catalog lists no environment variables for this template.
Ports and volumes
- Ports
- 8983
- Volumes
- 1 named mount: solr_data -> /var/solr
Apache Solr FAQ
How much memory does Apache Solr need?
The catalog lists about 1 GiB of memory for Apache Solr.
Does Apache Solr run on arm64?
For Apache Solr, arm64 support is not confirmed; amd64 is unknown.
What licence is Apache Solr under?
Apache Solr is licensed under Apache-2.0, which is permissive, with few conditions on reuse.
Does Apache Solr need configuration before it starts?
No. The template fills in its own defaults.
Which ports does Apache Solr use?
Apache Solr listens on port 8983 inside the stack.
Where does Apache Solr keep its data?
In a named volume: solr_data mounted at /var/solr.
Can I deploy Apache Solr on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Apache Solr, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image solr:9.11.0 is what you deploy there.