I guess I'm a bit late in this post, but I'm currently having the same problem and I wonder if anyone figured it out.
The thing is: I don't want to expose my backend to the outside. If it's already bridged in a docker network with my frontend, why do I need to portbind it? Isn't there any way around this? I've seen some nginx solutions but it seemed way too improvised, idk.