how to make docker pull the latest version each time the docker-compose up

Is it possible for docker-compose file to pull the latest version each time I run docker-compose up

I now I can execute the pull command before the compose up. but I look to shortcut the steps.

Source: StackOverflow