Adding to the target service in the docker-compose.yaml file to interactive within image
docker-compose.yaml
services:backend:# ...# Run in interactive mode# ref: https://stackoverflow.com/questions/36249744/interactive-shell-using-docker-composestdin_open:true# docker run -itty:true# docker run -t# ...