Retrieving artifacts built in docker-compose'd containers

Our projects revolve around docker-compose pretty much always, as such we followed

However I’m unable to retrieve artifacts from the containers without using “tricks” like

    docker-compose run builder bash -c 'make something.tar; cat something.tar' > outputted_to_gitlabrunner_env.tar

The stdout redir to a file is a poor solution. How do other people retrieve artifacts from docker-compose’d containers? Using (host) volumes seems like another world of hurt on its own.