> Updating the Protectimus Platform
Updating the Protectimus Platform
You can update the Protectimus On-Premise Platform using a Docker image on any operating system.
However, if you initially installed the Platform on Windows, you may follow the instructions for Windows users below.
1. Updating Platform Using a Docker Image
You have two options for updating the Protectimus On-Premise Platform with a Docker image: We’ll walk you through both methods, allowing you to choose the one that best suits your preferences.1.1. Updating via Git Repository Cloning
- Use this command to copy the repository containing Docker Compose files to your local computer, where the Protectimus On-Premise Platform is installed.
git clone https://github.com/protectimus/platform
The contents of the archive will be as follows:
. └── platform ├── platform │ ├── docker-compose.yaml │ ├── .env │ ├── platform_data │ │ ├── autogenerated-keystore.jks │ │ └── protectimus.platform.properties │ └── postgres_data ├── radius │ ├── config │ │ ├── radius.all.yml │ │ └── radius.yml │ ├── docker-compose.yaml │ └── .env └── unifi-guest-portal ├── config │ ├── fragments.html │ ├── guest-portal.all.yml │ └── guest-portal.yml ├── docker-compose.yaml └── .env
- Go to the platform directory:
cd platform/platform
- Run the application using Docker Compose.
This command will start all the containers required for your application in the background (-d):
docker-compose up -d
- Stop running containers using this command:
docker-compose down
- Make a backup of your database. The data is located in the postgres_data directory.
- Get latest changes from Git repository.
This command will update your local repository to the latest version that you have uploaded to Git.
Resolve any configuration conflicts if necessary.
git pull
- Download the updated images. This command will download the updated Docker images from your Docker registry:
docker-compose pull
- Restart containers with new images.
This command will restart the containers using the updated images in the background mode (-d):
docker-compose up -d
1.2. Manual Update from Github
- Download the latest version of the archive with the Protectimus Platform from Github and extract it:
https://github.com/protectimus/platform/releases
The contents of the archive will be as follows:
. └── platform ├── platform │ ├── docker-compose.yaml │ ├── .env │ ├── platform_data │ │ ├── autogenerated-keystore.jks │ │ └── protectimus.platform.properties │ └── postgres_data ├── radius │ ├── config │ │ ├── radius.all.yml │ │ └── radius.yml │ ├── docker-compose.yaml │ └── .env └── unifi-guest-portal ├── config │ ├── fragments.html │ ├── guest-portal.all.yml │ └── guest-portal.yml ├── docker-compose.yaml └── .env
- Go to the platform directory:
cd platform/platform
- Run the application using Docker Compose.
This command will start all the containers required for your application in the background (-d):
docker-compose up -d
- Stop running containers using this command:
docker-compose down
- Make a backup of your database. The data is located in the postgres_data directory.
- Change the component version to the latest in the .env file.
- Download the updated images. This command will download the updated Docker images from your Docker registry:
docker-compose pull
- Restart containers with new images.
This command will restart the containers using the updated images in the background mode (-d):
docker-compose up -d
2. Updating Platform on Windows
2.1. Stop Platform, Bot, and Radius Services
Before updating the platform, stop the platform, bot, and Radius in services.![Stop the Protectimus On-Premise Platform - Step 1](https://www.protectimus.com/wp-content/uploads/2024/01/protectimus-mfa-platform-update-2-1024x654.png)
![Stop the Protectimus On-Premise Platform - Step 2](https://www.protectimus.com/wp-content/uploads/2024/01/protectimus-mfa-platform-update-1-1024x650.png)
![Stop the Protectimus On-Premise Platform - Step 3](https://www.protectimus.com/wp-content/uploads/2024/01/protectimus-mfa-platform-update-3-1024x657.png)
2.2. Upgrade Platform and Select Existing Database
Install the new version of the Protectimus On-Premise Platform, and when selecting a database, choose the one used in the old version of the Protectimus platform.- Choose the necessary components.
![Install the new version of the Protectimus On-Premise Platform - Step 1](https://www.protectimus.com/wp-content/uploads/2024/01/protectimus-mfa-platform-update-4.png)
- Click Next.
![Install the new version of the Protectimus On-Premise Platform - Step 2](https://www.protectimus.com/wp-content/uploads/2024/01/protectimus-mfa-platform-update-5.png)
- Click Next.
![Install the new version of the Protectimus On-Premise Platform - Step 3](https://www.protectimus.com/wp-content/uploads/2024/01/protectimus-mfa-platform-update-6.png)
- Use your username and password to log in to the PostgreSQL database you created during the first platform installation and click LogIn.
![Install the new version of the Protectimus On-Premise Platform - Step 4](https://www.protectimus.com/wp-content/uploads/2024/01/protectimus-mfa-platform-update-7.png)
- Enter the name of the database you used in the old version of the Protectimus platform and click Select.
You can click the List button to see the list of available databases if you don’t remember the exact name of the necessary database.
![Install the new version of the Protectimus On-Premise Platform - Step 5](https://www.protectimus.com/wp-content/uploads/2024/01/protectimus-mfa-platform-update-8.png)
- Preferably, use the same destination folder as previously.
![Install the new version of the Protectimus On-Premise Platform - Step 6](https://www.protectimus.com/wp-content/uploads/2024/01/protectimus-mfa-platform-update-9.png)
- Once the platform is installed, you will see the changelog describing recent updates; close it.
![Install the new version of the Protectimus On-Premise Platform - Step 7](https://www.protectimus.com/wp-content/uploads/2024/01/protectimus-mfa-platform-update-10.png)
- Then click OK to finish the installation.
![Install the new version of the Protectimus On-Premise Platform - Step 8](https://www.protectimus.com/wp-content/uploads/2024/01/protectimus-mfa-platform-update-11.png)
If you have other questions, contact Protectimus customer support service.
Last updated on 2025-02-04