sajad torkamani
docker-compose exec <service-name> bash

You can see the names of your services with docker-compose ps.

Tagged: Docker