Gitea: cannot authenticate user

I am unable to login to drone using my gitea username/password. I get the error below.

{“level”:“warn”,“ip”:“172.17.0.1”,“path”:"/login",“method”:“POST”,“request_id”:“bfmfdhv5i1r8mfqi3b5g”,“error”:“Get https://localhost:3000/api/v1/users/gitadmin/tokens: dial tcp 127.0.0.1:3000: connect: connection refused”,“time”:“2018-11-15T04:32:07Z”,“message”:“cannot authenticate user”}

this is because your gitea address is 127.0.0.1:3000 which is not accessible outside of the drone container, since containers have isolated network space.

Works after changing the ip address to a 192.168.0.xxx. Thank you very much.