Skip to content

Install on Docker

Using containers installing is made simple, in this guide we will install DOF & NGINX on a linux (ubuntu) machine.

Prerequisites

Install: - docker (including compose) - NGINX

Docker

Create a folder and copy all files from:

https://github.com/DragOnFlowSystems/Setup

Start the containers by:

docker compose up

NGINX

The container exposes the system via several ports on HTTP. If we want to use a browserwe need to add HTTPS support & certificate. We will use NGINX & Let's encrypt certificate.

Start by setting up HTTPS: - Set DNS - install and run certbot

Edit the nginX configuration file

sudo nano /etc/nginx/sites-available/default

Add the following in the beginning of the file:

map $http_connection $connection_upgrade {
"~*Upgrade" $http_connection;
default keep-alive;
}

Make sure nginx uses http2

listen [::]:443 ssl ipv6only=on http2; # managed by Certbot
listen 443 ssl http2; # managed by Certbot

add the "http2" if missing

instruct nginx to reread the configuration

sudo nginx -s reload

Make sure you can open:

https://[domain]/dof
https://[domain]/AmlAdmin

Useful docker commands

Command Description
docker volume ls -q | xargs docker volume inspect lists all volumes with details
docker compose pull gets last versions of images
docker ps list containers
docker exec -it [CONTAINER_NAME_OR_ID] /bin/bash
or docker exec -it [CONTAINER_NAME_OR_ID] /bin/sh
open shell in container