How can I force Docker Compose to rebuild containers when dockerfile changes?
Why not docker-compose build ? 

https://docs.docker.com/compose/reference/build/

You can also do docker-compose up --build to force a rebuild.