Link Search Menu Expand Document
  1. Installing on Debian, Nginx and Letsencrypt
    1. Provision a box
    2. Install basic tools
    3. Install Docker tools
    4. Install nginx
    5. Install and configure Letsencrypt
    6. Prepare folder/files
    7. Install test data
    8. Starting services
  2. Installation verification

Installing on Debian, Nginx and Letsencrypt

This document provides instructions on how to install Reconmap in a Debian box. Instructions for other Linux distributions will be different but similar.


  • The box has nothing installed.
  • You have sudo or root access to install all required elements.
  • Your team is small and escalability is not a concern.


  • Install Reconmap and all its dependencies
  • Configure Nginx to serve Reconmap through HTTPS using Letsencrypt certificates

Provision a box

Find a server where to install Reconmap. The hardware requirements vary depending on your use but the minimum and recommended can be found here.

If your budget is limited but you want to run Reconmap and support the project, consider using the badge bellow which gives this team an small comission when you deploy a droplet. Thanks!

DigitalOcean Referral Badge

Install basic tools

sudo apt-get update

sudo apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \

Install Docker tools

curl -fsSL | sudo apt-key add -

sudo add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \

sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli

sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Install nginx

sudo apt install -y nginx
sudo cat <<EOF >/etc/nginx/sites-enabled/default
server {
    server_tokens off;

    index index.html;

    location / {

server {
    server_tokens off;

    location / {
        proxy_set_header    X-Forwarded-Host   \$host;
        proxy_set_header    X-Forwarded-Server \$host;
        proxy_set_header    X-Forwarded-For    \$proxy_add_x_forwarded_for;
        proxy_set_header    X-Forwarded-Proto  \$scheme;
        proxy_set_header    X-Real-IP          \$remote_addr;
        proxy_set_header    Host               \$host;

Install and configure Letsencrypt

sudo apt-get update
sudo apt-get install -y certbot
sudo apt-get install -y python-certbot-nginx

sudo certbot --nginx --agree-tos --email -n --redirect

Prepare folder/files

mkdir reconmap && cd reconmap

mkdir -p data/attachments && chmod ug+w data/attachments/

mkdir -p logs && chmod ug+w logs




Changes to docker-compose.yml:

  • Change default MySQL and Redis passwords.

Changes to config.json:

  • Change all values under the jwt key.
  • Change the allowedOrigins array under the cors key.
  • Change the SMTP settings to match your SMTP settings.
  • Change the database settings to match what you have put on the MySQL section on the docker-compose.yml file.

Changes to environment.js:

  • Change all URLs, hosts and ports to match the ones for your server and whatever you define in the docker-compose.yml file.

Install test data

wget -O- | docker exec -i rmap-mysql mysql -ureconmapper -preconmapped reconmap

Starting services

sudo docker-compose up -d
sudo service nginx restart

Installation verification

Congratulations! Your Reconmap instance should be up and running. To verify everything is working open your browser and head to http://localhost:3001 (unless host, IP are different) and enter the default credentials. You should see a Reconmap’s dashboard. If something does not work, visit the troubleshooting page.