Upgrade docker elk-stack from 7.14.X to 8.13.2

Hi,
I installed elk-stack using docker-compose with version 7.14.1
I want to upgrade my stack to 8.13.2.
what are the steps that I need to do? is it enough to change the version in my compose file and rebuild the image?

As described in the documentation you need to first go to Elasticsearch 7.17 and use the upgrade assistant to identify any potential issues that need to be fixed before going on to Elasticsearch version 8.X.