Your issue is that you are binding to the 127.0.0.1:8025
inside your code. This makes the code work from inside the container but not outside.
You need to bind to 0.0.0.0:8025
to bind to all interfaces inside the container. So traffic coming from outside of the container is also accepted by your Go app