posted 1 year ago
I can't give a simple answer here, but a few notes might help.
I've never seen "expose" as a run parameter for Docker, only in Dockerfiles. I'm not sure what that's all about, but it might be blocking access when you thought you were granting it.
Docker has several networking. The simplest is to merely let the containers share the same network as the host. A popular alternative is to let Docker set up a VPN between containers, however, and that's quite common when you have service containers with their own private database.
Often the most important part of the news is what they didn't tell.