By sebssd
Hi there,
Is there a way of sharing resources between droplets in any way?
What I’m building is a core system with clients which only contain configuration, but fetch all other files from that core installation, which would be installed on a separate droplet.
Any idea and what potential security risk does it come with?
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!
You could use SSHFS or NFS to do this:
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-14-04
For relying on this in production, NFS would be better than SSHFS. That said, unless you’re very experienced with server administration, I actually don’t recommend either. You’re much better off sticking with technologies you understand and are familiar with debugging when things go wrong. For example, use a web server running on the central server and serve files to your other servers over HTTP/HTTPS.
Thanks @jsamuel,
I thought about micro-services, but at present it’s just not feasible for me to do it due to the amount of work this would require. Some of the resources include javascript files, which don’t like sharing over the http/s.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.