Online installation
Passwork is not demanding on server resources. The volumes of required resources (RAM, CPU, HDD) and the number of servers depend on the number of active users, the volume of stored data, as well as the requirements for system fault tolerance.
System requirements — Minimum system requirements
If the server has 2-4 GB RAM, it is recommended to enable a SWAP file to build all libraries correctly.
DEB-based
RPM-based
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
To install Passwork, you need to download and run the script that will install all the necessary components.
Create a directory and navigate to it:
Copy the installation script:
Check the hash of the file passwork_compose_install.sh to verify the authenticity of the file:
The system should display the message passwork_compose_install.sh: OK.
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:
You can add a user to the docker group like this:
Give the script execution rights and run it:
The script uses apt or dnf, as well as curl. If a proxy server is used in your network, you need to add environment variables: export http_proxy=http://proxy.example.com:8080 export https_proxy=http://proxy.example.com:8080
Process of executing the installation script
The script will check the rights of the current user, as well as the versions of the necessary components. In case of errors, the script will create a log in the format install_log_date.log and will place the errors in it.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/DTLvM1aCgBGKQjLfmJsK5_izobrazhenie.png?format=webp)
During the execution, the certificate number will be requested from the customer portal:
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/lc4BA4_NSZnvWA6qL8fAJ_cleanshot-2023-11-03-at-1620462x.png?format=webp)
After the script execution is completed
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 Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/Kdv74q-d18hXPWpmK5n5__image.png?format=webp)
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.
At the first step, the system will offer to choose the interface language.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/-7zNMspm2WZgPyv92yFEr_cleanshot-2023-11-03-at-1623562x.png?format=webp)
The checklist of parameters will show if all components are installed on your server.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/ugAtj3b5qk2BerfOsjk56_cleanshot-2023-11-03-at-1624192x.png?format=webp)
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 Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/O2jlP-aUT_HQdtdh0X44a_cleanshot-2023-11-03-at-1625002x.png?format=webp)
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 Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/lyHiMnpY2tWbVSBnoDVXs_cleanshot-2023-11-03-at-1626472x.png?format=webp)
You can download the license keys in your Passwork customer portal or request them from managers.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/PLYDvvM4_b_z_6zA9jig3_cleanshot-2023-11-03-at-1627312x.png?format=webp)
By default, Passwork will generate a self-signed certificate. When the installation is complete you can move on to using full SSL certificates.
- For certificates issued by a trusted issuer
- For certificates issued by the domain certification authorities of your organization
Rename and place your SSL certificate or certification chain in ./conf/ssl
privkey.pem — private key.
fullchain.pem — certificate\certification chain
You can configure Let's Encrypt if you don't have a certificate authority (certificate issued by a trusted center), but you have a public DNS name for the server.
Edit the file - .env change and add the following parameters:
Save the changes made and start the container.
Check the container logs for certificate acquisition.
Example of issuing a certificate
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/ZoZT-rNspEbQohd2CQLT5_image.png?format=webp)
Recreate containers to update data using new certificates.
Passwork will be available via the HTTPS protocol using a certificate from Let's Encrypt.