I have a secondary drive mounted via Lightsail. Mapped to a directory and have rsync’d all my uploads to it. However even after changing the app.yml to the below scheme and restarting Discourse it refuses to save the file to the new location. Any ideas?
volume:
host: /var/discourse/shared/standalone/uploads
guest: /forum_images
pfaffman
(Jay Pfaffman)
December 3, 2025, 12:17am
2
Did you rsync or move the existing images there? Do you not want the existing images? They are in the default directory.
File permissions?
I think you’ll need to rebuild to get it to make the default directory where the uploads go.
I used rsync. The forum has 190gb of user uploaded images so yes, definitely want them.
The user is ubunto for both the discourse files and the ones moved. The permissions are the same as well. I will try a rebuild then.
I did a rebuild and it’s still saving to: /var/discourse/shared/standalone/uploads/default/
And not: /forum_images/default/
pfaffman
(Jay Pfaffman)
December 3, 2025, 1:04pm
5
Oh. You got it backward.
volumes:
- volume:
host: /var/discourse/shared/standalone
guest: /shared
- volume:
host: /var/discourse/shared/standalone/log/var-log
guest: /var/log
So you want to add
- volume:
host: /forum_images
guest: /shared/uploads
Then you can
./launcher destroy app;./launcher start app
Then you can
./launcher enter app
ls /shared/uploads
to see if the stuff is there
Thanks Jay. Yup that was it. All working as it should now.
1 Like