Problems accessing MusicBrainz over local network

I need to change all //localhost:5000/ generated links to either //192.168.0.99:5000/:

Or, even better, to just /:

Even if I prefer the patch, to test it quicker first, I changed musicbrainz-server/lib/DBDefs/Default.pm:

sub WEB_SERVER { "localhost:5000" }
sub WEB_SERVER { "192.168.0.99:5000" }

Then I restarted sudo docker-compose up but it was not enough.
What do I need to do first, so that my change to Default.pm is taken into account?

Would it be the same action for the @yvanzo patch to be taken into account, as well?

Sorry for newbie questions.