Using Compose, if I run docker-compose build, it will rebuild all the containers :
docker-compose build
> docker-compose build Building elasticsearch
Yes, use the name of the service:
docker-compose build elasticsearch