I don't use the Docker version, but you can certainly do that. In any event, once it is setup, it will be listening on TCP port 5005 (unless you configure it to listen elsewhere). You'll need to edit the default "settings.json" to match your Sonos setup.
I have 2 Sonos One in a group called Bedroom and a PlayBar+Sub in a group called LivingRoom (I recommend you not have spaces in your Sonos speakers names). Here's what my settings.json looks like:
{
"all": {
"playmode": {
"shuffle": true
},
"players": [
{
"roomName": 'Bedroom',
"volume": 15
},
{
"roomName": 'LivingRoom',
"volume": 15
}
],
"pauseOthers": true
}
}
And you're on your way. I start my favorites using @ogiewon's http-momentary-switch (it's on his Github) to create virtual switches that I use in my rules etc.