PicList

 

2024-01-06

支持在 Docker 中直接部署。

Terminal window
1
docker run -d \
2
--name piclist \
3
--restart always \
4
-p 36677:36677 \
5
-v "/data/piclist:/root/.piclist" \
6
kuingsmile/piclist:latest \
7
node /usr/local/bin/picgo-server -k piclist123456

Docker Compose 方式:

1
version: '3.3'
2
3
services:
4
node:
5
image: 'kuingsmile/piclist:latest'
6
container_name: piclist
7
restart: always
8
ports:
9
- 36677:36677
10
volumes:
11
- './piclist:/root/.piclist'
12
command: node /usr/local/bin/picgo-server -k piclist123456

如果使用的是 s3 接口,都需要进 Docker 中手动安装安装插件:

Terminal window
1
docker exec -it piclist /bin/sh
2
3
# 进入容器 sh 后执行
4
node /usr/local/bin/picgo add s3

s3 配置文件:

1
"aws-s3": {
2
"configList": [
3
{
4
"_configName": "Default",
5
"_id": "42566c3f-1234-5678-9876-7bb3529eeeee",
6
"_createdAt": 1704522942464,
7
"_updatedAt": 1704539511125,
8
"accessKeyID": "ACCESSKEYID",
9
"secretAccessKey": "SECRETACCESSKEY",
10
"bucketName": "img",
11
"uploadPath": "{fullName}",
12
"region": "auto",
13
"endpoint": "ENDPOINT",
14
"proxy": null,
15
"urlPrefix": "URLPREFIX",
16
"pathStyleAccess": false,
17
"rejectUnauthorized": true,
18
"acl": "public-read",
19
"disableBucketPrefixToURL": false
20
}
21
],
22
"defaultId": "42566c3f-1234-5678-9876-7bb3529eeeee"
23
}

参考