支持在 Docker 中直接部署。
docker run -d \
--name piclist \
--restart always \
-p 36677:36677 \
-v "/data/piclist:/root/.piclist" \
kuingsmile/piclist:latest \
node /usr/local/bin/picgo-server -k piclist123456
Docker Compose 方式:
version: '3.3'
services:
node:
image: 'kuingsmile/piclist:latest'
container_name: piclist
restart: always
ports:
- 36677:36677
volumes:
- './piclist:/root/.piclist'
command: node /usr/local/bin/picgo-server -k piclist123456
如果使用的是 s3 接口,都需要进 Docker 中手动安装安装插件:
docker exec -it piclist /bin/sh
# 进入容器 sh 后执行
node /usr/local/bin/picgo add s3
s3 配置文件:
"aws-s3": {
"configList": [
{
"_configName": "Default",
"_id": "42566c3f-1234-5678-9876-7bb3529eeeee",
"_createdAt": 1704522942464,
"_updatedAt": 1704539511125,
"accessKeyID": "ACCESSKEYID",
"secretAccessKey": "SECRETACCESSKEY",
"bucketName": "img",
"uploadPath": "{fullName}",
"region": "auto",
"endpoint": "ENDPOINT",
"proxy": null,
"urlPrefix": "URLPREFIX",
"pathStyleAccess": false,
"rejectUnauthorized": true,
"acl": "public-read",
"disableBucketPrefixToURL": false
}
],
"defaultId": "42566c3f-1234-5678-9876-7bb3529eeeee"
}