Trying to recover an installation

ok, then copy this entire dir somewhere for seafekeeping:

/var/discourse/shared

that way you can try to restore from backups or even try to repair the corrupt db if you need to.

then delete your docker container(s), do a docker image prune -a, delete /var/discourse, and install discourse again. then copy the most recent backup file into place and try to restore.