Browser returns 504 error after browsing Nextcloud on web
After browsing my Nextcloud instance for 1-10 minutes the page becomes unresponsive and eventually returns a 504 error. It will stay in that state until I let it sit for 30+ minutes or I restart the container. I can't seem to find anything in the logs that indicates what could be going on. Any help or ideas on where to look for the problem would be greatly appreciated!
Here is my env file:
APACHE_CONFDIR=/etc/apache2 APACHE_ENVVARS=/etc/apache2/envvars GPG_KEYS=|REDACTED| MYSQL_DATABASE=nextcloud MYSQL_HOST=db MYSQL_PASSWORD=|REDACTED| MYSQL_USER=nextcloud NEXTCLOUD_VERSION=23.0.2 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PHP_ASC_URL=https://www.php.net/distributions/php-8.0.16.tar.xz.asc PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 PHP_INI_DIR=/usr/local/etc/php PHP_LDFLAGS=-Wl,-O1 -pie PHP_MEMORY_LIMIT=1024M PHP_SHA256=|REDACTED| PHP_UPLOAD_LIMIT=10240M PHP_URL=https://www.php.net/distributions/php-8.0.16.tar.xz PHP_VERSION=8.0.16 PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c