Skip to content

Commit

Permalink
[OneBot] Specify container image hosting in Docker.md as ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored Mar 2, 2024
2 parents cdc978f + 0b427ed commit 85f412b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ An Implementation of NTQQ Protocol, with Pure C#, Derived from Konata.Core
```bash
# 8081 port for ForwardWebSocket
docker run -d -p 8081:8081 lagrangedev/lagrange.onebot:edge
docker run -d -p 8081:8081 ghcr.io/lagrangedev/lagrange.onebot:edge
```

## Persistence Storage

```bash
docker volume create lagrange_data
docker run -d -v lagrange_data:/app/data lagrangedev/lagrange.onebot:edge
docker run -d -v lagrange_data:/app/data ghcr.io/lagrangedev/lagrange.onebot:edge
```

## Configure appsettings.json in Docker
Expand All @@ -37,18 +37,18 @@ docker run -d -v lagrange_data:/app/data lagrangedev/lagrange.onebot:edge

use bind mount to mount your `appsettings.json` to `/app/appsettings.json`
```bash
docker run -d -v /etc/appsettings.json:/app/appsettings.json lagrangedev/lagrange.onebot:edge
docker run -d -v /etc/appsettings.json:/app/appsettings.json ghcr.io/lagrangedev/lagrange.onebot:edge
```

### Using Environment Variables

use [Enviroment Variables](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-7.0#naming-of-environment-variables) to set your appsettings.json
```bash
# disable reverse websocket
docker run -d -e Implementations__1__Enable=false lagrangedev/lagrange.onebot:edge
docker run -d -e Implementations__1__Enable=false ghcr.io/lagrangedev/lagrange.onebot:edge
```

```bash
# input username and password
docker run -d -e Account__Uin=123456 -e Account__Password=1234 lagrangedev/lagrange.onebot:edge
docker run -d -e Account__Uin=123456 -e Account__Password=1234 ghcr.io/lagrangedev/lagrange.onebot:edge
```

0 comments on commit 85f412b

Please sign in to comment.