Documents won't open

Documents stopped opening after reboot, download icon is constantly blinking. Browser inspector says: “bad gateway 502”.
Local server Ubuntu, docker.

Please enter the Document Server container with docker exec -it [container_id] bash and run these commands:

service nginx restart
supervisorctl restart all

Let me know the results. Also please specify the ONLYOFFICE product you are using and provide a screenshot of the issue.

Thanks, I ran these commands, here is a screenshot of the server response