[SOLVED] Install Page Ends in 504 Error


Hi all,

I’ve spent a couple hours searching around but I haven’t seen anyone who had this same issue. I’ve installed Gogs via Docker on my server, but every time I try to complete the install page, I get a 504 Gateway Timeout error.

I’m running Ubuntu 16.04.3 with Plesk Onyx system management.
Gogs version
Attempting to use MySQL 5.7.20
Gogs is reverse proxied behind Nginx.
A screenshot of my current Docker configuration for Gogs: http://prntscr.com/h71fz3

Please let me know if I can provide any other information or logs. I’m not very experienced with Docker, so I’m not sure where to look for errors.



For anyone else having the same issue, the problem turned out to be that Gogs couldn’t connect with my MySQL database through Docker.

You have to open the MySQL port in the firewall, UFW allow 3306/tcp in my case.

You then have to configure MySQL server to listen on all interfaces.

  • Edit /etc/mysql/my.cnf
  • Add “bind-address =”