All you need to do is pulling the new image with:
sudo docker compose -f /home/netlock/docker-compose.yml pull && sudo docker compose -f /home/netlock/docker-compose.yml up -d --remove-orphans
The database structure & agents update automatically.
We suggest to automatically check for newer images using watchtower: https://github.com/nicholas-fedor/watchtower
Example to check for a new version every 15 minutes:
docker run --detach \
--name watchtower \
--volume /var/run/docker.sock:/var/run/docker.sock \
--restart unless-stopped \
nickfedor/watchtower \
--interval 900
In the web console under Settings -> System -> Updates, enable the platforms you want to enable the updates for as well as making sure your concurrent agent update/installation limit is high enough.

Now make sure that the policy assigned to your devices allowing automatic agent updates as well.

If a agent upgrade fails for whatever reason, it takes usually up to 15 minutes until it will be back automatically due to self healing functionality.