Thinking about this, outside your container try to rename your old postgres file and renaming the new one _new
Then try to restart the service within docker
files are in /var/discourse/shared/standalone outside the container.
- rename
postgres_datatopostgres_data_new - rename
postgres_data_oldtopostgres_data - restart service inside container as above
- check it’s started again with logs inspection.
- If good, you can proceed with fixing the data.