Apache Solr Server Deployment Overview¶
Prerequisites¶
The following parameters are required for the application to function correctly:
-
Operating System: Ubuntu.
-
Access Rights:
rootprivileges for Docker installation and directory management. -
Domain: A domain in the
hostkey.inzone is required. -
Ports:
-
Internal application port:
3000(inside the container). -
External access port:
443(HTTPS).
FQDN of the final panel on hostkey.in domain¶
| Parameter | Value |
|---|---|
| Prefix | apache-solr |
| Domain | hostkey.in |
| Full Template | apache-solr{Server_ID_from_Invapi}.hostkey.in |
File and Directory Structure¶
The following paths are used in the system for storing data and configurations:
-
/opt/solr/data— Apache Solr data directory. -
/root/nginx— Nginx working directory (containscompose.yml). -
/data/nginx/user_conf.d— Directory containing user configuration files for Nginx.
Application Installation Process¶
Deployment is performed by running a Docker container using the solr:9 image. The application operates in host network mode, providing direct communication with host ports. Additionally, an Nginx + Certbot stack is installed and configured to ensure operation via the HTTPS protocol.
Docker Containers and Execution¶
The following containers are used for system operation:
-
apache-solr{Server_ID}.hostkey.in— Main Apache Solr application container (imagesolr:9). -
nginx— Proxy server for handling SSL traffic (imagejonasal/nginx-certbot:latest).
Permissions Settings¶
The following access rights are set to ensure correct database operation and file storage:
-
Directory
/opt/solr/data: -
Owner:
8983 -
Group:
8983 -
Permissions:
0755
Configuration Files and Data Location¶
| File Type | File Path / Directory |
|---|---|
| Solr Data | /opt/solr/data |
| Docker Compose Configuration | /root/nginx/compose.yml |
| SSL Certificates (inside volume) | nginx_secrets |
Available Connection Ports¶
-
Port
443— Access to the application via a secure HTTPS connection. -
Port
3000— Internal Solr application port.
Starting and Stopping the Application¶
Proxy server management is performed via Docker Compose in the /root/nginx directory:
-
Start:
docker compose up -d(executed from/root/nginx). -
Stop: Docker container management.