I mentioned upgrade to v5 via docker in standalone topic here: Upgrade Mautic from v2.16.3 to v5.0.3 via docker