Quickstart using Docker-Compose

Docker Compose (part of Docker) makes it possible to orchestrate the configuration of multiple Docker containers at once using a docker-compose.yml file.

Requirements

Install Docker

Please refer to the Get Started with Docker guide to install Docker for MacOS or Windows. When installing Docker on Linux, please refer to one of the following guides:

Install Compose

To install Docker Compose on Linux, please refer to the Install Compose on Linux systems guide. You can skip this step for MacOS and Windows.

LoRa Server

Configure

The LoRa Server project provides an example docker-compose.yml file that you can use as a starting-point. This example can be found at https://github.com/brocaar/loraserver-docker and also contains more documentation.

To clone this repository, you need to execute the following commands:

$ git clone https://github.com/brocaar/loraserver-docker.git
$ cd loraserver-docker

Start

After you have updated the configuration, you can run the following command to start all Docker containers:

$ docker-compose up

Please note that the first time you execute this command, there might be some errors logged as the database needs to be initialized.

Add network-server

As each container has its own hostname, you must use the hostname of the loraserver container when adding the network-server in the LoRa App Server web-interface.

When using the above example, it means that you must enter loraserver:8000 as the network-server hostname:IP. See network-servers for more information.