This project enables you to run a LoopKey gateway instance on your linux machine.
Supported platforms: linux/arm/v7, linux/arm64 and linux/amd64.
To find out more about LoopKey, access https://www.loopkey.com.br.
You will need to have docker installed on your host machine, along with the bluez package.
The containrrr/watchtower is used for updating the gateway container.
docker run -d --name gateway_service -t -i --privileged --net=host \
--pull always \
-v <<PATH TO lkcreds.json FILE>>:/home/lkgateway/lkcreds.json \
--restart unless-stopped \
-l com.centurylinklabs.watchtower.enable=true \
loopkey/loopkey-gateway:stable
docker run -d --name watchtower -t -i \
-v /var/run/docker.sock:/var/run/docker.sock \
--restart unless-stopped \
-l com.centurylinklabs.watchtower.enable=false \
-e WATCHTOWER_HTTP_API_TOKEN=lkgateway \
-p 127.0.0.1:15535:8080 \
containrrr/watchtower --debug --http-api-update --label-enable
In order to connect to LoopKey servers, your device needs to be authenticated. This is done by a lkcreds.json file in the following format:
{
"id": "<<ID>>",
"key": "<<KEY>>"
}
This file should be passed to the docker container directy to the volume /home/lkgateway/lkcreds.json.
docker run --rm -t -i --privileged --net=host \
-v <<<PATH TO lkcreds.json FILE>>>:/home/lkgateway/lkcreds.json \
loopkey/loopkey-gateway:stable
Content type
Image
Digest
Size
35.5 MB
Last updated
over 5 years ago
docker pull loopkey/loopkey-gateway