By default Fabric will use the version tagged latest. To use another version (known as image_tag in docker parlance) edit the docker-compose.yaml like so
image:hyperledger/fabric-ca-tools:1.3.0
above will tell docker to use the image tagged 1.3.0
see:
https://stackoverflow.com/questions/33816456/how-to-tag-docker-image-with-docker-compose