This project provides the Light Reflective Mirror Node (LRM-Node) as a Docker container.
1.6K
This project provides the Light Reflective Mirror Node (LRM-Node) as a Docker container. It uses .NET 7, automatically downloads the tagged version of the LRM-Node, and dynamically generates the configuration file based on environment variables.
Run the following command in the directory containing the Dockerfile:
docker build -t lrm-node .
.env FileCreate a .env file with the desired configuration values (see below) and start the container:
docker run --env-file .env -p 7777:7777 -p 8080:8080 --name lrm-node-container lrm-node
Or run it in the background:
docker run -d --env-file .env -p 7777:7777 -p 8080:8080 --name lrm-node-container lrm-node
docker run -e AuthenticationKey=SuperSecure -e TransportPort=9999 -p 7777:7777 -p 8080:8080 --name lrm-node-container lrm-node
docker logs -f lrm-node-container
docker stop lrm-node-container && docker rm lrm-node-container
.env File ExampleSave this file as .env in the project directory:
TransportClass=kcp2k.KcpTransport
AuthenticationKey=Secret Auth Key
TransportPort=7777
UpdateLoopTime=10
UpdateHeartbeatInterval=100
RandomlyGeneratedIDLength=5
RandomlyGeneratedIDChars=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw
UseEndpoint=true
EndpointPort=8080
EndpointServerList=true
EnableNATPunchtroughServer=true
NATPunchtroughPort=7776
UseLoadBalancer=false
LoadBalancerAuthKey=AuthKey
LoadBalancerAddress=127.0.0.1
LoadBalancerPort=7070
LoadBalancerRegion=1
docker-composedocker-compose.ymlCreate a file named docker-compose.yml with the following content:
version: '3.8'
services:
lrm-node:
build: .
container_name: lrm-node-container
env_file: .env
ports:
- "7777:7777"
- "8080:8080"
restart: unless-stopped
docker-composeBuild and start the container with:
docker-compose up -d
docker-compose Containersdocker-compose down
With this setup, you can easily run the LRM-Node as a Docker container. You can use either docker run or docker-compose, depending on what best fits your setup. 🚀
Content type
Image
Digest
sha256:7992117d4…
Size
77.1 MB
Last updated
over 1 year ago
docker pull tyroonis/lrm-node