1_Installation
Prerequisite: Docker installation
DataStore is deployed as docker container. You need a running docker installation for it to be installed.
If you setup a new VM for this, we suggest the newest Ubuntu LTS release.
If you already have a server or VM with a running docker, just skip this chapter and go on with "Installation".
Install docker on linux
The installation of docker on linux is straightforward. If you Google this topic you will find explanations from the Docker website which invite you to do a manual installation of docker by downloading and installing their actual version. From a technical perspective this is not needed. At least Brinkhaus does not need bleeding edge docker installation. We recommend to just use the docker version which comes from your Linux distribution.
On a typical Ubuntu or Debian you go with
sudo apt update
sudo apt install docker docker-compose
Install docker on Windows
The installation of docker for Windows is described here: https://docs.docker.com/desktop/install/windows-install/
Installation
Suggestion for quick start for linux
datagate-1:
image: "brinkhausgmbh/datagate"
container_name: "datagate-1"
restart: unless-stopped
ports:
- "8081:8081"
- "22101:22101"
volumes:
- settings-datagate-1:/var/bos/settings/datagate-1
- logs-datagate-1:/var/bos/logs/datagate-1
datagate-2:
image: "brinkhausgmbh/datagate"
container_name: "datagate-2"
restart: unless-stopped
ports:
- "8082:8081"
- "22102:22102"
volumes:
- settings-datagate-2:/var/bos/settings/datagate-1
- logs-datagate-2:/var/bos/logs/datagate-1
dataswitch:
image: "brinkhausgmbh/dataswitch"
container_name: "dataswitch"
depends_on:
- datagate-1
- datagate-2
- mosquitto
restart: unless-stopped
ports:
- "8090:8090"
volumes:
- settings-dataswitch:/var/bos/settings/dataswitch
- logs-dataswitch:/var/bos/logs/dataswitch
mosquitto:
image: "eclipse-mosquitto"
container_name: "mosquitto"
restart: unless-stopped
ports:
- "1883:1883"
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
# DataStore with backend CrateDB
crate01:
image: crate
hostname: crate
ports:
- "4200:4200"
- "4300:4300"
- "5432:5432"
volumes:
- ./data/databaseBackend:/data
datastore:
image: brinkhausgmbh/datastore
hostname: datastore
environment:
- MQTT_CONNECTION_TARGET=mosquitto
ports:
- "8089:80"
depends_on:
- crate01
- mosquitto
volumes:
- ./data/datastore:/data/datastore
volumes:
settings-datagate-1:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/var/bos/settings/datagate-1_docker'
logs-datagate-1:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/var/bos/logs/datagate-1_docker'
settings-datagate-2:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/var/bos/settings/datagate-2_docker'
logs-datagate-2:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/var/bos/logs/datagate-2_docker'
settings-dataswitch:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/var/bos/settings/dataswitch_docker'
logs-dataswitch:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/var/bos/logs/dataswitch_docker'