No, the container name is "rest-api" in all configs.
It's a common problem in Golang apps because it uses the DNS of the system that it's compiled in it, not the destination system DNS.
So I didn't see any example using container URL as server_url, all of them use IP