Apache Solr Deployment Overview on Server¶
Prerequisites¶
The following parameters are required for the application to function correctly:
| Parameter | Value |
|---|---|
| Domain zone | hostkey.in |
| Internal port | 3000 |
| External port | 443 |
| Path (external) | / |
FQDN of the final panel on hostkey.in domain¶
Domain template for application access:
| Parameter | Value |
|---|---|
| Prefix | apache-solr |
| Domain | hostkey.in |
| Full template | apache-solr{Server_ID_from_Invapi}.hostkey.in |
File and Directory Structure¶
The following directories are used in the system to store configurations and data:
-
/root/nginx— Nginx proxy working directory. -
/data/nginx/user_conf.d— Directory containing custom Nginx configurations. -
/data/nginx/nginx-certbot.env— Environment variables file for Certbot.
Application Installation Process¶
Deployment is carried out in a Docker container using the jonasal/nginx-certbot:latest image. The application works alongside an Nginx proxy server, which manages SSL certificates via Certbot.
Docker Containers and Execution¶
The infrastructure uses docker compose. The main service is nginx, running in host mode to ensure direct port access.
Command to start containers from the /root/nginx directory:
Permissions Settings¶
Access rights for the main directories:
-
Directory
/root/nginx: ownerroot, grouproot, mode0755. -
Configuration file
/root/nginx/compose.yml: ownerroot, grouproot, mode0644.
Available Ports for Connection¶
| Port | Purpose | Protocol |
|---|---|---|
3000 | Internal application port (internal) | TCP |
443 | External access via HTTPS | TCP |
Starting and Stopping the Application¶
Container state management is performed using docker compose commands:
-
Start:
docker compose up -d(executed in the/root/nginxdirectory). -
Stop:
docker compose down.