Preparing the server

For example, we will consider installing a server based on Ubuntu 24.x LTS from the very beginning. But if you already have your own configured server, you can immediately proceed to the next step, where the process of launching Melbis Shop in a container will be described.

After purchasing the server, you will receive SSH access to it at the highest root level by email. The first command will display general information about your server configuration:

 # hostnamectl

To change the password to a new one, run the command:

 # passwd

Next, for generally accepted security reasons, it is necessary to create an intermediate user through which we will enter the system:

 # adduser melbis

After registering the new user melbis, reboot the system with the command:

 # shutdown -r now

and log in first as the melbis user, and then switch to root mode using the command:

 # su -

The next step is to update the repositories of the installation distributions:

 # apt-get update

You can install the convenient file navigator Midnight Commander:

 # apt-get install mc

Now you can start installing the Docker system, this is done in several steps:

 # apt-get install ca-certificates curl gnupg
 # install -m 0755 -d /etc/apt/keyrings
 # curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
 # chmod a+r /etc/apt/keyrings/docker.gpg
 # echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
 # apt-get update
 # apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
 # apt-get install docker-compose