48 lines
1.1 KiB
Markdown
48 lines
1.1 KiB
Markdown
|
||
|
||
## 开源项目paopao-ce快速搭建演示环境
|
||
|
||
项目地址: https://github.com/rocboss/paopao-ce
|
||
|
||
|
||
## 使用docker快速安装
|
||
|
||
docker run --name paopao-ce -d -p 8008:8008 -p 8700:7700 -v ./data/custom:/app/custom -v ./data/meili_data:/app/meili_data bitbus/paopao-ce:all-in-one-0.6-alpha
|
||
|
||
因docker镜像中缺少gosu命令,需要进入容器手动安装gosu
|
||
|
||
```shell
|
||
docker exec -it paopao-ce sh
|
||
```
|
||
在容器中执行:
|
||
```shell
|
||
|
||
apk update
|
||
apk add --no-cache --virtual .gosu-deps
|
||
wget https://github.com/tianon/gosu/releases/download/1.17/gosu-amd64
|
||
chmod +x gosu-amd64
|
||
cp gosu-amd64 /usr/local/bin/gosu
|
||
```
|
||
退出容器,重新启动容器即可。
|
||
|
||
## 修改config.yaml
|
||
默认启动后,帖子中上传的图片无法正常显示。
|
||
|
||
```shell
|
||
docker cp paopao-ce:/app/config.yaml ./
|
||
vi config.yaml
|
||
|
||
```
|
||
修改yaml文件中的LocalOSS配置,将Domain改为实际服务器ip。
|
||
```yaml
|
||
LocalOSS: # 本地文件OSS存储配置
|
||
SavePath: custom/oss
|
||
Secure: False
|
||
Bucket: paopao
|
||
Domain: 127.0.0.1:8008
|
||
```
|
||
|
||
```shell
|
||
docker cp config.yaml paopao-ce:/app
|
||
```
|