Deploy on local Linux or MacOS machine
DronaHQ Self Hosted supports local installation on your Linux based OS or MacOS using Docker.
We recommend you to deploy DronaHQ Self Hosted on cloud hosted virtual machines such as AWS EC2, Azure VM, or GCP Compute Engine. Their hardware and operating systems are more standardized make it best fit for production use cases. If you are deploying DronaHQ on a physical machine then verify that your system is matching minimum criteria for network and storage requirements.
To deploy DronaHQ on your local machine you should have:
- DronaHQ Self Hosted license key. you can get your license key from Self Hosted Portal.
- Working installation of Docker Desktop.
1. Download DronaHQ Self Hosted
There are two ways, you can download DronaHQ Self Hosted.
a. Cloning Git repository
To clone from git repository, run following command.
git clone https://github.com/dronahq/self-hosted.git dronahq-self-hosted
Above command will create new folder in your present working directory with name
b. Download and extract compressed package from DronaHQ
To download compressed package from DronaHQ, run following command
curl -L -fsSL -o ./master.zip "https://license.dronahq.com/self-hosted/master.zip" && unzip master.zip && mv master dronahq-self-hosted
2. Change working directory
We have to change working directory to
dronahq-self-hosted for playing with DronaHQ.
Use following command.
3. Update resources
This is recommended step by DronaHQ. Updating your resources periodically will help you stay aligned with DronaHQ.
Run following command
/bin/bash -c "$(curl -fsSL https://license.dronahq.com/self-hosted/master/update_resources.sh)"
4. Setup DronaHQ Environment
Running this script will clear your existing installation if you have any. It will setup completely new environment. It will create back of your current environment and storage directory with time stamp followed by file/folder name.
To setup dronahq environment, you have to run
./dronahq_setup already present in your working directory.
5. Update environment variables
DronaHQ writes all configurable environment variables in file
dronahq.env. Please make sure you have all mandatory variables are in place.
LICENSE_KEY is one of the mandatory and essential environment variable. please verify that you have it in
If not you can add this variable. Following is the example of how this variable should look like in environment file.
This variable specifies how do yo want to access DronaHQ.
- Protocol [ http/ https]
- Access domain [ Localhost/ IP address/ Domain Name]
Example 1. If you are using DronaHQ on local machine.
Example 2. If you have configured DronaHQ on server and want to use it with server's public IP address.
# replace your ip address here
Example 3. If you have mapped your domain name to server's IP address.
# replace your domain name
iii. Optional environment variables
You can also checkout other optional Environment Variables, which can enable advance options for you to use DronaHQ Self Hosted.
6. Restart DronaHQ
You can apply all new changes in configuration, and restart DronaHQ simply by running following command.
sudo docker-compose up -d
7. Verify that containers are running
You can use following command to check running docker containers.
sudo docker-compose ps
It should look something like this