After watching countless videos I found an answer:
-
To update WP to a later version go into your yml file set the version you want.
-
Then just issue the following command:
docker-compose up -d wordpress
-
Then go into your WP admin console and select ‘upgrade’
Simples