Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 2.23 KB

Docker.md

File metadata and controls

51 lines (38 loc) · 2.23 KB

Lagrange.Core - Docker guide

An Implementation of NTQQ Protocol, with Pure C#, Derived from Konata.Core

Core OneBot C# C#

License Telegram

> English < | 简体中文

Getting Started

# 8081 port for ForwardWebSocket and Http-Post
# /path-to-data is used to store the files needed for the runtime
# UID Env and GID Env are used to set file permissions
docker run -td -p 8081:8081 -v /path-to-data:/app/data -e UID=$UID -e GID=$(id -g) ghcr.io/lagrangedev/lagrange.onebot:edge

Important

  1. During the first run, you may be prompted with Please Edit the appsettings.json to set configs and press any key to continue. Please choose one of the following solutions to proceed:

      1. Modify /path-to-data/appsettings.json
      2. Restart the container using docker restart
      1. Ensure that the -t option is used when executing docker run
      2. Modify /path-to-data/appsettings.json
      3. Enter the container using docker attach
      4. Press any key
      5. Exit the container using Ctrl + P Ctrl + Q
  2. If the host needs to access the Implementation (e.g., Http, ForwardWebSocket), please configure the Host of Implementation as *

  3. If the implementation needs to access the host network (e.g., HttpPost, ReverseWebSocket), please configure the Host of implementation to be host.docker.internal.

Migration from older versions

Move appsettings.json, device.json, keystore.json, lagrange-*.db to the same folder where you want to put them.
For example /path-to-data

Delete the ConfigPath configuration entry in /path-to-data/appsettings.json

Start the container according to Getting Started