It’s more of an issue of understanding how providing commands in docker-compose works rather than anything specific. Using >
makes everything in the next chunk be read as a string, whereas putting it with a -
at the start makes it the first element of a list or arguments, passing the entire run --model ....
as arg1. See here for more info: docker-compose cheatsheet – here it would be the equivalent of putting in run --model models/ ...
as bundle
.