It reached end of life over a year ago. What to know about CentOS Linux EOL
I recommend that you get a new vm with a new os and make a backup on the old machine and restore it to the new one. That will save a step of upgrading the database.
Unless you love Centos for a particular reason, I would go with Ubuntu, which most people here use, or Debian, which the discourse docker container is now based on.