You need to do the upgrade in stages. You can’t go straight from 2.3 to 4.2. You also have likely 2 MySQL upgrades to do.
First need to down the containers and make sure you have a good backup. Then upgrade to Xibo 3.3.12. As part of that. you’ll need to make sure you upgrade from MySQL 5.6 to 5.7 by running mysqlupgrade. Notes on doing that are here:
Then once all is well and you’re on MySQL 5.7, you can upgrade to Xibo 4.2.0, and with it MySQL 8.0.