Standard installation
...
Linux
Passwork Migration
Migration from Windows to Docker
10min
These instructions describe how to prepare and migrate Passwork installed on Windows Server to Docker installed on Linux.
These instructions are intended for a single Passworks installation and are not suitable for a fault-tolerant solution.
- Open powershell.exe as Administrator and navigate to the directory — cd "C:\Program Files\MongoDB\Server\x.x\bin"
- Backup examples:
- Local installation (MongoDB) without authorisation — mongodump.exe --archive="mongo.dump"
- Local installation (MongoDB) with authorisation — mongodump.exe --authenticationDatabase admin --username=username --password=password --archive="mongo.dump"
- Installing (MongoDB) on a separate server — mongodump --host host:port --authenticationDatabase admin --username=username --password=password --archive="mongo.dump"
- Create a copy of the default config.ini configuration file located:
- Manual installation — C:\inetpub\wwwroot\app\config\config.ini
- Using the Windows installer — C:\inetpub\wwwroot\passwork\app\config\config.ini
- Create a copy of the passwork-*.keys licence key, located by default:
- Manual installation — C:\inetpub\wwwroot\app\keys\passwork-*.keys
- Using the Windows installer — C:\inetpub\wwwroot\passwork\app\keys\passwork-*.keys
If the Docker installation will use the same domain name and SSL certificate as the previous Passwork installation. You need to copy the SSL certificate manually (full certificate chain in pfx), or use the following PowerShell code:
- Install Docker and Docker Compose
- Create and navigate to the directory where you plan to deploy the new Passwork Docker build.
- Download the installation script — wget https://repos.passwork.pro/repository/docker/passwork_compose_install.sh
- Download the migration script — wget https://repos.passwork.pro/repository/docker/migrate.sh
- Assign execution rights — chmod +x ./*.sh
- Create a directory — mkdir ./windows
- Place the previously copied files from the "Preparation" step into the windows directory:
- Configuration file — config.ini
- Licence key — passwork-*.keys
- MongoDB backup
- Passwork website certificate
- Run the script with the -mv flag — sudo ./passwork_compose_install.sh -mw
- The installation script will perform a basic installation of the latest version of Passwork available in your licence and automatically run the migration script.
- After the scripts are finished, check that the new installation is working properly and make adjustments if necessary — https://docs.passwork.pro/online-installation#cMZWh
- To add mail server or LDAPS protocol root certificates to trusted certificates, copy the .pem or .crt root certificates to the ./conf/custom_ca directory and restart the PHP container — docker compose restart passwork_php
- To change the SSL certificate used, copy the certificate/certificate chain to ./conf/ssl/fullchain.pem and the private key to ./conf/ssl/privkey.pem and restart the Nginx container — docker compose restart passwork_nginx
Updated 31 Oct 2024
Did this page help you?
TABLE OF CONTENTS