Docker compose bridged network

I seem to be unable to get a bridged network in defined in a docker compose file working properly. It works fine in our ci environment, which runs under linux, but for me, using docker/for-mac on High Sierra there is always some container left hanging on a network connection. Googling around I get the impression that there are osx-specific problems in this area, and that my problems may well be insoluble for now. Should I spend more time here, or should I give up?