Cortex Installation Guide
Server requirements:
Physical server or virtual machine (VMware, Hyper-V, KVM, Proxmox)
Hardware requirements:
Memory: 16Gb
CPUs: 8 cores (SSE 4.2 required, AVX recommended)
150 GB of hard drive space or more (SSD or NVME recommended)
--------------------------------------------------------------------------------------
Configure Static IP Address on Ubuntu 24.04
Identify Your Network Interface
ifconfig
Edit the Netplan Configuration File
sudo nano /etc/netplan/[Link]
network:
version: 2
renderer: networkd
ethernets:
ens3:
addresses:
- [Link]/24
routes:
- to: default
via: [Link]
nameservers:
addresses: [[Link], [Link]]
--------------------------------------------------------------------------------------
Apply the Configuration Changes
sudo netplan apply
Verify the New Static IP Address
ifconfig
Check Ubuntu version:
lsb_release -a
Display Current Time, Date, and Timezone in Ubuntu:
timedatectl
Change Timezone in Ubuntu:
timedatectl set-timezone Asia/Baku
Set the Ubuntu system to synchronize with NTP time servers using the following command:
timedatectl set-ntp yes
--------------------------------------------------------------------------------------
Installation Docker v28.1.1
Run the following command to uninstall all conflicting packages:
for pkg in [Link] docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo
apt-get remove $pkg; done
Install using the APT repository:
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL [Link] -o /etc/apt/keyrings/[Link]
sudo chmod a+r /etc/apt/keyrings/[Link]
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/[Link]]
[Link] \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/[Link].d/[Link] > /dev/null
sudo apt-get update
Install the Docker packages:
sudo apt-get install docker-ce docker-ce-cli [Link] docker-buildx-plugin docker-compose-plugin
Verify that the installation is successful by running the hello-world image:
sudo docker run hello-world
If you have successfully installed Docker, you will receive the following message:
Hello from Docker!
This message shows that your installation appears to be working correctly.
To check the Docker version:
docker --version
Install the Docker Compose:
sudo apt-get update
sudo apt-get install docker-compose-plugin
To check the Docker Compose version:
docker compose version
If you have successfully installed Docker Compose, you will receive the following message:
Docker Compose version v2.35.1
Installation Cortex
Make sure you have Docker installed, and that you have a minimum of 8Gb of RAM available.
To download Cortex use the following command:
cd /opt/
mkdir Cortex
cd Cortex
git clone [Link]
cd docker/prod1-cortex
Run the Initialization Script:
bash ./scripts/[Link]
[!] The following files do not have expected permissions: yes
[*] Define the hostname used to connect to this server: [Link]
---------------------------------------------------------------------------------------------
Modify [Link]
Form:
# ports:
# - '[Link]:9001:9001'
To:
ports:
- '[Link]:9001:9001'
---------------------------------------------------------------------------------------------
Run Docker Compose:
docker compose up -d
---------------------------------------------------------------------------------------------
If Container Elasticsearch doesn't start:
docker compose down
sudo chown -R 1000:1000 /opt/Cortex/docker/prod1-cortex/elasticsearch
docker compose up -d
---------------------------------------------------------------------------------------------
To view running containers, use the following command:
docker ps
To view containers logs, use the following command:
docker logs “CONTAINER ID” --follow
For example:
docker logs b883e358a684 --follow
To enter Cortex use the following link:
[Link]
[Link]