Penso che tu abbia identificato correttamente il problema. Ecco cosa ho nella mia app.yml:
## Il container Docker è stateless; tutti i dati sono archiviati in /shared
volumes:
- volume:
host: /mnt/volume_tor1_01/shared/standalone
guest: /shared
- volume:
host: /mnt/volume_tor1_01/shared/standalone/log/var-log
guest: /var/log
- volume:
host: /var/postgres_data_discourse
guest: /shared/postgres_data
(basato su questa guida Move Uploads and Backups to DigitalOcean Block Storage)
$ cat postgres_data/PG_VERSION
15
$ cat /var/postgres_data_discourse/PG_VERSION
13
Quindi penso che il problema sia effettivamente risolto da questo approccio PostgreSQL 15 update - #125 by Vaping_Community
Penso che ciò che mi ha bloccato sia stato il fatto che avessi più cartelle postgres_data sul volume mnt (perché ho rieseguito la ricostruzione) e non mi sono reso conto che la cartella di origine fosse effettivamente in /var/
Lo proverò più tardi stasera.