Solve the problem of docker error: Unsupported compose file version: 3.2

The following error occurred when using docker to deploy the project today:

unsupported Compose file version: 3.2

It seems that there is a version problem by searching the data:
https://stackoverflow.com/questions/58007968/unsupported-compose-file-version-x-x

Solution:
upgrade the docker and docker compose versions to the latest versions.

Read More: