Standard installation
Linux

Offline installation

17min

Docker installation

Download and install Docker. The minimum required version is 18.06.0. Official installation article — https://docs.docker.com/engine/installation/

Install and enable the Docker Compose plugin if it has not been installed previously. The official installation article — https://docs.docker.com/compose/install/linux/

We recommend using Docker installed not through snap

Preparing the environment for offline installation

To install Passwork, you need to download the files and a script that will perform the necessary steps for installation.

  • Create a directory and navigate to it:
Shell

Shell

  • Move *.tar image archives to — passwork_images
Shell

  • The structure of files and folders after performing the described actions:
Shell


User rights verification and script execution

If you are installing not as root, make sure that the user is a member of the docker group.

You can check using the following method:

Shell


You can add a user to the docker group like this:

Shell


Running the offline installation script

  • Assign execution rights to the script:
Shell

  • In the directory — your_directory run the passwork_compose_install.sh installation script with the -o flag
Shell


The script will automatically execute docker ps. Please check the list of running containers. If the containers were not started, please check the installation output and log. Example of correct output:

Document image


Setup wizard

After building and running the containers, Passwork will be available at the following link: https://your_servername

By default, Passwork uses a self-signed certificate that is automatically generated during installation, so when you first open the page, you will see a message that the browser does not trust the site's certificate.

Choose language

At the first step, the system will offer to choose the interface language.

Document image


System parameters check

The checklist of parameters will show if all components are installed on your server.

Document image


Database connection

By default, Passwork in Docker connects to a service named db, so it is necessary to change the connection string on the third stage of the initial installation.

The connection string is mongodb://db:27017

Document image


Encryption key

Passwork will generate a new key for server encryption. If you are connecting Passwork to an existing database, specify the existing encryption key.

Do not enter a key that was generated outside of Passwork. Passwork uses special secure algorithms to generate new keys in appropriate formats. Using keys generated by third-party tools may result in incorrect operation.

Document image


License keys

You can download the license keys in your Passwork customer portal or request them from managers.

Document image


Additional settings after installation

  • After the script is 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 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, restart the Nginx container — docker compose restart passwork_nginx