docker-compose down and up

trying to get this module to work and docker-compose down and up

Did you simply follow the lines down there ? ie pip install docker ?

Then you need to install the collection using ansible-galaxy collection install community.docker