In this article, I aim to demonstrate how to swiftly install EspoCRM with a fully-fledged DNS, making it quickly accessible to the public. This process can be completed in under 10 minutes, based on my experience, and is ideal for testing purposes.
From my experience, this method requires less maintenance work, such as managing SSL certificates, Docker containers, and Docker networks.
We will be using CapRover to install EspoCRM. Although EspoCRM is not officially available as a one-click package, CapRover offers quick install scripts for a few common open-source packages.
The process is fairly simple and can be done without extensive knowledge of Docker.
If you’re already familiar with CapRover installation, feel free to skip ahead to the EspoCRM installation section.
Now, let’s get started. We will be using Digital Ocean with a CapRover image. This will provide us with a pre-installed VM (droplet) with CapRover.
You will need the following:
Steps:
Create new droplet with.
Install npm.
How to Install Node.js and npm on Ubuntu 20.04
apt update && apt upgrade
sudo apt install nodejs npm
Note : Ubuntu repo has older version of nodejs and npm. If you need latest version for some reason get it from NodeSource. Steps given in article.
Create Addition Swap file. You might experience crashes on 1GB of RAM.
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
nano /etc/fstab
sudo swapon --show
sudo free -h
Install CapRover CLI
npm install -g caprover
Create ‘A’ Record in your domain provider dashboard for Caprover.
Should look like this. I have created this record using digital ocean. You can do it with any domain provider.
Run serversetup to start configuration.
caprover serversetup
Enter details when prompted.
Setup CapRover machine on your server...
? have you already started CapRover container on your server? Yes
? IP address of your server: 64.44.777.66
? CapRover server root domain: cap.yourdomain.com
? new CapRover password (min 8 characters): [hidden]
? enter new CapRover password again: [hidden]
? "valid" email address to get certificate and enable HTTPS: [email protected]
? CapRover machine name, with whom the login credentials are stored locally: cap
CapRover server setup completed: it is available as cap at <https://captain.cap.yourdomain.com>
For more details and docs see CapRover.com
Access caprover from your domain in browser.