Webapp with Mutiple Droplet setup

Hi, we currently serve a lavarel web app on a digital ocean droplet. We have multiple instances of this web app running for our customers. This web app in turn connects to the corresponding database for that customer which again is hosted in digital ocean on a database droplet. Customers upload multiple files which are stored in the storage folder of the web app itself. So for example, customer A changes their branding and uploads a new logo, this is stored in the storage folder and a link to that file is stored in the database so it loads on the web app.

My question is, can it be possible to store these uploads on another droplet and still point to them within the database so that if the application server was to ever go down, we could spin up a new one, create the customer again and point it to the correct database using the env file and all the branding, etc still works?

Sorry if my question comes across as novice.

Many thanks in advance :)

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

This sounds like an interesting setup and an interesting application!

What I would personally do is to use a S3 storage like the DigitalOcean Spaces:

Here is a tutorial on how to use the DigitalOcean Spaces with a Laravel app:

That way your customers would be uploading their images to the specific Space and then if you were to migrate over to a new Droplet the images would not be affected.

Hope that this helps!