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:
--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 agents will upgrade automatically.
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.