Then I think you’d want to look at the first doc I linked. Essentially you would move the uploads and backups to the mounted disk, but keep the database on the main drive.
Move /var/discourse/shared to the volume
For best performance we will keep postgres_data on our main drive and will move rest of the data to the newly attached volume.
Logged in as root, run these commands from your server:
mv /var/discourse/shared/standalone/postgres_data /var/postgres_data_discourse
mv /var/discourse/shared /mnt/volume_nyc1_05
Make sure to replace volume_nyc1_05 with the name of your volume.
Edit app.yml to reflect the changes
Open the /var/discourse/containers/app.yml file in your preferred editor and look for this block:
## 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
Replace the above block with:
## 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
Make sure to replace volume_nyc1_05 with the name of your volume.
Save the app.yml file and rebuild the container.
/var/discourse/launcher rebuild app
So unless I’m misunderstanding, this is what you’re trying to do? (And of course, please take a backup before doing this)