Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
Well explained article. It helped me to understand a lot on the local/in-house server setup environments (where I need to setup all the hardware/software environment, to have a website up and running on our office residing server commercially). Can any one assist me to solve my problem please.
I want to deploy a CMS application developed in React, Redux, Mongo DB. I am new so I am wondering how can I setup this. Any guidelines will be helpful. I have following questions in my mind:
What are pros and corn of having **Linux **or **Windows **based server. (also which versions are relevant)
How to setup an SSL on local hosting server. What are options.
What are the security precautions to be made.
An internet line with dedicated IP from ISP can be connected, but do need to have any security hardware in middle in the network?
How to setup/connect a purchased domain name (www.mydomain.com) to an internal hosting server.
How to have multiple IPs to an internal hosting server, so if one server fails or one network fails the other keeps working with the purchased domain name. Also how floating IP helps and how this can be setup.
How to log IP(visitors) access log in hardware level to keep server secure. How Ranchet is helpful and what is the purpose of setting up Ranchet. Is it not right to simply install NodeJS on the machine and run application on it (but as I’m new so I need some guidelines on this please).
Is it simple to start application just like I do in my local development environment and everything will be accessible on the DNS (if setup).
How to setup internal code version control system (using any local version control system and also GitHub), so if one deployment fails or creates any trouble; we can then restore to older code version.
How to setup a mailing server to send and receive emails and also how can we setup different emails on local hosting server.
Any application crash and monitoring tools I need to setup? How Nginx is helpful and any comparison with Ranchet?
What is the purpose of Containers and Dockers? and is it a feature or a service or what exactly it serves. As I’m new so I may ask: Is it ok to go for deployment without Containers and Docker :) Dont’ be angry please.
Hello,
This looks like a great tutorial. I’m setting up my first VPS on DO and was considering a simple nginx server set up, possibly using it as a reverse proxy for apache as detailed here. I’ll probably be doing mostly Node/Mongo projects but would like to have the option of running php/wordpress sites on there as well. I’d like to keep myself on a single 1gb droplet at least for now, but the ability to scale would be nice and your recipe would make that super easy. My only concern is that it seems like possible overkill for me at this point, would you say it’s suitable for running a single instance/domain now with the intent to scale out as I add other sites? Also, as the @mhannan313 noted this set-up doesn’t seem to include nginx or apache, would I want to add one of those? As you can probably tell I’m still a little new so I was just hoping to get your take on the best set up.
Actually, it looks like there’s already another tutorial on DO about installing nginx in Docker. So I guess really my question could be shortened to, is it necessary/useful to use nginx in this context, or does the hapi server + Docker make that optional?
Hello,
So, this is just my personal opinion but - as someone looking for a cheap/flexible way to run a VPS for personal projects and a couple of domains, I did not find Rancher to be a very good solution. If you don’t mind paying for a handful of droplets the methods described here worked great (setting up server was a snap, and the pre-configured DO hosts were super easy to add - but will automatically launch extra droplets) - but I spent about a week trying to get everything set up to run on a single droplet and it was rather painful and in the end, once I did get a host running on the same droplet as the server it crashed the whole setup. I initially launched a DO pre-built host, and then deleted it once I realized I was going to be charged for an extra server - after which my Rancher server wouldn’t recognize Custom hosts - I finally deleted the Rancher server after much troubleshooting and then was able to move forward. I can’t say for sure I wasn’t doing something wrong, but once the host/agent was up it never managed to get into a ‘healthy’ state, and was using all of my server’s 1gb of memory plus a lot of cpu. After about 45 minutes it crashed and I wasn’t able to access the dashboard/ui, or restart it through the command line on my server. I was following along with their Quick Start guide in which they have you launch multiple containers on a single machine, so it seemed possible but at the end of the day I just don’t think this is a practical solution for a small set up. Also, their docs surprisingly fail to cover uninstalling Rancher, and I’ve not managed to get it or Docker completely off my machine (getting ‘device or resource busy’ errors that don’t seem to be responding to what I can find on the internet.)
I hate to cast aspersions on what looks like a really full-featured and well designed system, but I will be starting over with an nginx/apache setup.
This comment has been deleted
This is a really great tutorial. Everything works perfectly but I have a question. How can I access the mongodb database with a software like Robot3T or MongoDB Compass? I can’t find which URL to use.
database1@1.0.0 start /home/agifttoken
node server.js
internal/modules/cjs/loader.js:584 throw err; ^
Error: Cannot find module ‘web3’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/home/agifttoken/server.js:16:14)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! database1@1.0.0 start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the database1@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/agifttoken/.npm/_logs/2019-04-05T07_15_26_027Z-debug.log