Installing

Self-hosted How to install DataGerry on your own server, and put it behind nginx with TLS. For a first look, Quick install is quicker. Check Requirements first.

All commands need root rights (sudo).

Choose a method

Method

Use it when

Docker Compose

You run containers anyway, or want the shortest path. Brings MongoDB and nginx along.

RPM package

RHEL 9 and compatible distributions.

ZIP with setup script

Any other Linux distribution with systemd.

DEB package

Debian or Ubuntu.

Download links for all packages and images are in Downloads. Licensed customers also find the releases under Packages & Downloads in the Service Portal.

Docker Compose

The DataGerry-docker repository starts three containers — dg-backend, dg-mongodb and dg-frontend (nginx) — and keeps all data in Docker volumes. Images are on Docker Hub; use the latest version tag.

# git clone https://github.com/DataGerry/DataGerry-docker.git /opt/DataGerry-docker
# cd /opt/DataGerry-docker
# cp conf/cmdb_default.conf conf/cmdb.conf
# cp conf/app-config_default.json conf/app-config.json
# cp conf/nginx_default.conf conf/nginx.conf
# docker compose up -d

The configuration files live in /opt/DataGerry-docker/conf — cmdb.conf for the backend, app-config.json for the web interface and nginx.conf for the frontend container. See Configuration.

Hint

If users open DataGerry from other machines, set apiUrl in /opt/DataGerry-docker/conf/app-config.json to the DNS name or IP address under which the browser reaches DataGerry, and protocol and apiPort to match. With the default localhost the web interface only works in a browser on the Docker host itself. Restart with docker compose restart afterwards. See app-config.json.

Open DataGerry in the browser

As soon as the containers are running, DataGerry can be opened in the browser at http://<host>/ (on the Docker host itself: http://localhost). Sign in with:

User name

admin

Password

admin

Warning

Change the admin password straight away under Settings → Users, even on a test system.

If the page does not load, check that all three containers are running:

# docker compose ps

Logs

Each container writes its own log. Follow them with:

# docker logs -f dg-backend
# docker logs -f dg-frontend
# docker logs -f dg-mongodb

dg-backend is the one to look at first: it shows the start-up, database migrations after an update, and errors of the application.

TLS with Docker

  1. Put your certificate and key into conf/ssl/certs/ and conf/ssl/private/.

  2. Copy conf/nginx-ssl_default.conf to conf/nginx-ssl.conf and set the file names:

    ssl_certificate     /etc/ssl/certs/cmdb.pem;
    ssl_certificate_key /etc/ssl/private/cmdb.key;
    
  3. In conf/cmdb.conf, section [WebServer], set ssl = true and the same certfile and keyfile.

  4. In docker-compose.yml, switch the frontend volume from nginx.conf to nginx-ssl.conf and mount the certificate folders into both containers:

    dg-frontend:
      volumes:
        - ./conf/nginx-ssl.conf:/etc/nginx/conf.d/default.conf
        - ./conf/ssl/certs/:/etc/ssl/certs/
        - ./conf/ssl/private/:/etc/ssl/private/
    dg-backend:
      volumes:
        - ./conf/ssl/certs/:/etc/ssl/certs/
        - ./conf/ssl/private/:/etc/ssl/private/
    
  5. docker compose up -d.

Packages (RPM, ZIP, DEB)

The packages install DataGerry as a systemd service datagerry running as the user datagerry, with its configuration in /etc/datagerry/. MongoDB is not included.

  1. Install MongoDB 7.0 or 8.0 following the MongoDB installation guide, and make sure mongod is running.

  2. Install DataGerry:

    # rpm -ivh DATAGERRY-<version>.el9.x86_64.rpm                         # RHEL
    # unzip DataGerry-<version>.zip && cd datagerry && bash setup.sh       # other
    # apt install ./DataGerry_<version>_all.deb                           # Debian / Ubuntu
    

    All three enable and start the service. Check it with systemctl status datagerry.

  3. Open http://<host>:4000 — or the host name of your reverse proxy, see below.

Follow the log with journalctl -u datagerry -f. If the page does not load, check that port 4000 is open in the host firewall.

Hint

If users open DataGerry from other machines, set apiUrl in /etc/datagerry/app-config.json to the DNS name or IP address under which the browser reaches DataGerry, and protocol and apiPort to match — behind nginx, its host name. With the default localhost the web interface only works in a browser on the server itself. Restart with systemctl restart datagerry afterwards. See app-config.json.

TLS without a reverse proxy

DataGerry can serve HTTPS itself. In /etc/datagerry/cmdb.conf:

[WebServer]
ssl = true
certfile = /etc/ssl/certs/cmdb.pem
keyfile = /etc/ssl/private/cmdb.key

The datagerry user must be able to read both files, and needs read and execute permission on the private directory. Restart with systemctl restart datagerry.

nginx as reverse proxy

We recommend using nginx as a reverse proxy in front of a package installation, to improve performance, enable SSL and use your own domain name. DataGerry then listens on 127.0.0.1:4000 and nginx serves port 80/443.

Note

The nginx configuration is not part of the packages. Install nginx for your platform, then copy one of the configurations below into your nginx configuration (for example /etc/nginx/conf.d/datagerry.conf) and adapt it to your environment.

HTTP only — listens on port 80 and forwards requests from http://<host>/ to the DataGerry backend at http://127.0.0.1:4000:

server {
        listen 80;
        listen [::]:80;

        location / {
          proxy_pass http://localhost:4000;
          proxy_set_header Host $host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header X-Forwarded-Proto $scheme;
          proxy_read_timeout 90;
        }
  }

  # Logging
  access_log /var/log/nginx/access.log;
  error_log /var/log/nginx/error.log;

With TLS — listens on ports 80 and 443, redirects HTTP to HTTPS, and forwards requests from https://<host>/ to the DataGerry backend at http://127.0.0.1:4000:

server {
    listen 80;
    listen [::]:80;

    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    ssl_certificate /etc/ssl/certs/cmdb.pem;
    ssl_certificate_key /etc/ssl/private/cmdb.key;

    location / {
        proxy_pass https://localhost:4000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout 90;
    }

    # Logging
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;
}

A reverse proxy also makes it easy to use Let’s Encrypt certificates and custom domains. When the browser reaches DataGerry through nginx, set app-config.json to the address of nginx — see Configuration.

First sign-in

Sign in with user name admin and password admin, and change the password immediately. Then: