Allora, penso che vorresti consultare il primo documento a cui ho fatto riferimento. In pratica, sposteresti gli upload e i backup sul disco montato, ma manterresti il database sull’unità principale.
Discourse:
Sposta /var/discourse/shared sul volume
Per ottenere le migliori prestazioni, manterremo postgres_data sull’unità principale e sposteremo il resto dei dati sul nuovo volume collegato.
Accedi come root ed esegui questi comandi dal tuo server:
mv /var/discourse/shared/standalone/postgres_data /var/postgres_data_discourse
mv /var/discourse/shared /mnt/volume_nyc1_05
Assicurati di sostituire volume_nyc1_05 con il nome del tuo volume.
Modifica app.yml per riflettere le modifiche
Apri il file /var/discourse/containers/app.yml nel tuo editor preferito e cerca questo blocco:
## The Docker container is stateless; all data is stored in /shared
volumes:
- volume:
host: /var/discourse/shared/standalone
guest: /shared
- volume:
host: /var/discourse/shared/standalone/log/var-log
guest: /var/log
Sostituisci il blocco precedente con:
## The Docker container is stateless; all data is stored in /shared
volumes:
- volume:
host: /mnt/volume_nyc1_05/shared/standalone
guest: /shared
- volume:
host: /mnt/volume_nyc1_05/shared/standalone/log/var-log
guest: /var/log
- volume:
host: /var/postgres_data_discourse
guest: /shared/postgres_data
Assicurati di sostituire volume_nyc1_05 con il nome del tuo volume.
Salva il file app.yml e ricostruisci il contenitore.
/var/discourse/launcher rebuild app
Quindi, a meno che io non stia fraintendendo, è questo ciò che stai cercando di fare? (E naturalmente, fai un backup prima di procedere)