docker-compose exec?
docker-compose exec web /bin/bash
Saves having to add --service-ports
exec -ti f635776c2d08 /bin/bash
i do this often enough that i keep this in a makefile so i can do it by image name docker exec -ti `docker ps | grep 'container-name' | awk '{print $$1}'` /bin/bash