Sync: Name or service not known, Java UnknownHostException

Hi there,
I have setup odk-syncendpoint according to the guidelines in the documentation and everything went well except I could not access http://127.0.0.1/web-ui/login and then I changed the port of the web-ui in the docker-compose.yml file and using that port I could access it, but later on after attempting to login I was getting the following exception

There was an unexpected error (type=Internal Server Error, status=500).
I/O error on GET request for "http://sync:8080/odktables/default/privilegesInfo": sync: Name or service not known; nested exception is java.net.UnknownHostException: sync: Name or service not known
Please contact the operator with the above information.

here is the screenshot I get

I tried some changes in the file but to no avail, hope to get some help in here, thanks.

@Jeff_Beorse, @Karim_Bernardet1, @linl33, sorry to bother you guys, but I really need some help in this.

Mirwais

I have the same problem did you find a solution?

I ​​​​​​ho​​​pe ​​​you ha​​​ve s​​olv​ed the problem but if you’re still trying, see