504 Gateway Time-out

Hi!

My Kanboard installation works mostly OK, but every so often it stops running and offers a “504 Gateway Time-out” nginx error in the browser.

I am running Kanboard in docker (sqlite) with the simple command docker run -d --name kanboard -p 80:80 -t kanboard/kanboard:v1.2.20

Nginx seems happy overall, if I run a docker exec -it kanboard nginx -t I get:

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

and the log /var/log/nginx/error.log is not very helpful.

I don’t understand what is wrong; do you guys have suggestions?
Thanks!