In case you installed Discourse in a subfolder - Subfolder support with Docker
Remove those 2 lines from the app.yml config before your rebuild the app:
- rm public/uploads
- rm public/backups
Otherwise will it remove your existing uploads and backups.