Docker
HES deployment - Docker
This instruction shows how to install the HES server using docker containers on Linux. Examples of commands are given for CentOS Stream 9 and Ubuntu (20+), for other Linux versions, refer to the documentation on installing and running docker. The steps for running HES will not be different.
First of all, you need to decide what URL will be for your future HES server. It can be something like hideez.yurcompany.com. Hereinafter, this name is indicated as <your_domain_name>. You can copy this instruction into any text editor and replace all instances of the <your_domain_name> with your name. After that, you can execute most of the commands just copying them from the editor.
You need to add your domain name to the DNS settings of your hosting provider.
1. Preparation (if not already done)
Install Docker
You can also always refer to the official installation documentation: https://docs.docker.com/engine/install
CentOS
in case of unsuccessful installation, on Centos, you may need to remove some packages
and retry the installation
Ubuntu
To verify installed docker version run the following command:
and docker compose:
2. Іnstalling HES in the docker
Download templates
We have prepared an archive with a template for building containers
Extracting files and moving to the /opt directory and create folders for HES
Build docker image
During operation, HES uses an encryption certificate that will be generated in the /opt/hes/hes-site/x509stores directory Since the server will run under the "root" user inside the container, you need to change the owner of the certificate directory:
(optional) during the build, some space was used, then it can be cleared:
and load the containers:
Check the status
You can check the status of the docker containers running the command:
To make sure that everything is configured correctly, open the URL of your site in a browser (https://<your_domain_name>
). You should see the server authorization page. Log in using the default login 'admin@server' and default password 'admin'.
In case you cannot log in to the HES, see log files located in '/opt/HES/hes-site/logs'
Configure the Nginx (Optional)
Stop Server:
Open the /opt/HES/nginx/nginx.conf
file for editing. Uncoment and replace all instances of <your_domain_name> with your name.
Finally, when config files updated, you can run the server:
Configure the Docker for MS SQL (Optional)
Currently, HES can work with two databases: MySQL or MS SQL. By default, we use My SQL, but if you want to switch to MS SQL, you will need to perform a few additional steps, which will be described below
Skip this step, if you use a MySQL database
Stop Server:
So, first you need to tweak the file /opt/HES/docker-compose.yml
We have prepared a templates to work with the MS SQL container. Just run next commands:
You need to find the text in docker-compose.yml file
SA_PASSWORD: C00ll_Passwrd_here
and set your SA user password instead of 'C00ll_Passwrd_here'. We will later need this password to create a user and HES database
Start MS SQL container only:
Use the docker exec -it command for create a new database and user:
instead of "C00ll_Passwrd_here", enter your password here, which you specified in the /opt/HES/docker-compose.yml
file
The above command will execute the "/opt/HES/mssql/create_database.sql" script, which you can view (and optionally modify). As a result, a user and a database will be created in the Ms Sql database. Please note that this user and database will be used by HES (in the file /opt/HES/hes-site/appsettings.Production.json)
after changing the settings, you can start the server:
Here you can find an update guide for Docker.
By default, access to the new server: login - admin@server password - admin
Last updated