How can I view the output of a shell script running as the entrypoint of a "docker compose up" image running inside a Github Workflow

I think my script fails only inside the docker image but I’m not able to view any of the scripts output. Is there a method of doing this?
Perhaps can I output it as a file and open the file in view downstream within the Workflow?

Note the docker image is not a container or service. It is run with docker compose up.