Uploaded image gets broken after rebuilding docker


(Irshad) #1

I have discourse set up in my server using docker_image. But whenever I change anything in my docker image and deploy again. Uploads in previous build gets broken.
Why is this happening ?
Is uploads get stored in docker container, So if we delete the container and run again from an image is upload gone ? Instead is this not being saved in database ?
How to move this to somewhere else other than S3 for example glusterfs ?


(Régis Hanol) #2

Uploads are stored outside of the container and should be there after a rebuild. If they aren’t you have something misconfigured.


(Irshad) #3

@zogstrip : I am building the docker image using example configuration web_only.yml. Do I need to add anything else to make upload point to external folder ?