Legacy
...
Passwork 4
How to upgrade Passwork 4→5 ve...

Upgrade manual for Passwork 4→5 (Docker)

15min

This manual describes how to upgrade Passwork from version 4 to version 5 if you are using Docker. Passwork version 5 runs on PHP 8.0, so in addition to updating the source code, you will also need to configure a new Docker image for PHP-FPM 8.

💡 We recommend that you make a backup of your system before you start the upgrade

Table of contents

1. Create copies of container files and settings

Shell


2. Make changes to the configuration files for the container

Shell

  • Or edit the files manually

— Find the indicated lines in the files and edit. /server/conf/php8/php-fpm.conf

Shell


/server/conf/php8/prod.pool

Shell


3. Make changes to the Docker Compose configuration files

Shell

Shell

Shell


Or edit the files manually — Add php8 to /server/docker-compose/docker-compose.yaml :

Shell


— Add to /server/docker-compose/docker-compose.yaml :

Shell


— Add to /server/docker-compose/docker-compose.override.yml :

Shell


4. Create a Dockerfile for the new container

Shell

Shell


5. Create and run a container with PHP 8.0

Shell


6. Specify a new container for Nginx

Shell


Restart the Nginx and the necessary containers:

Shell


7. Update Passwork

Shell

Shell


8. Configure background tasks

Background tasks are jobs that run on the scheduler in the background. For example, LDAP synchronization, loading favicons, and other tasks that require a lot of time, constant execution, or resource allocation.