20231003 update

This commit is contained in:
jkjoy 2023-10-03 15:36:47 +08:00
parent 077219a71e
commit 4a74a53a7b
3 changed files with 42 additions and 34 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,9 @@
---
title: Docker部署Activity-Relay服务
date: 2023-10-03 09:06:40
tags: Docker
categories: 分享
abbrlink: 57ea9005
date: 2023-10-03 09:06:40
cover:
---
@ -16,7 +17,7 @@ cover:
```
git clone https://github.com/yukimochi/Activity-Relay.git -b v2.0.0
```
注意: 这里可以选择latest version
## 复制编辑config.yml
进入`Activity-Relay`目录
@ -42,20 +43,25 @@ openssl genrsa -out actor.pem 1024 | tee actor.pem
chmod 600 actor.pem
```
## 构建镜像与运行服务
```
docker-compose build
docker-compose up -d
```
## 查看容器运行状态
```
docker-compose ps
```
## 停止服务
```
docker-compose down
```
## 相关参考
docker-compose配置
```
version: "2.3"
services:
@ -96,8 +102,13 @@ services:
- "./config.yml:/var/lib/relay/config.yml"
depends_on:
- redis
```
Nginx设置
```
upstream relay {
server 127.0.0.1:8080;
@ -125,4 +136,5 @@ upstream relay {
}
}
```

View File

@ -1,8 +1,9 @@
---
title: NEC M700黑苹果OC0.9.4引导
date: 2023-10-01 09:06:40
tags: 黑苹果
categories: 分享
abbrlink: a116570f
date: 2023-10-01 09:06:40
cover:
---