一个基于 Docker 的 Iris Photo Gallery 部署方案,让您能够快速部署现代化的照片画廊网站。
- Docker
- Docker Compose (可选)
config.json
{
"name": "Your Photo Gallery", // 网站名称
"title": "Your Photo Gallery", // 页面标题
"description": "Capturing beautiful moments in life", // 网站描述
"url": "https://", // 个人 URL
"accentColor": "#fb7185", // 主题色
"author": {
"name": "Your Name",
"url": "https://your-website.com",
"avatar": "https://your-avatar-url.com/avatar.png"
},
"social": {
"twitter": "@yourusername"
},
"extra": {
"accessRepo": true
}
}
builder.config.json
{
"repo": { // 使用远端仓库作为 manifest 和 thumbnail 缓存
"enable": false,
"url": "https://github.com/username/gallery-public"
},
"storage": { // 存储配置
"provider": "s3",
"bucket": "your-photos-bucket",
"region": "us-east-1",
"prefix": "photos/",
"customDomain": "cdn.yourdomain.com"
}
}
.env
- S3 存储配置
S3_ACCESS_KEY_ID=your_access_key_id
S3_SECRET_ACCESS_KEY=your_secret_access_key
- PG (可选)
PG_CONNECTION_STRING=
- GIT (可选)
GIT_TOKEN=
docker build -t iris-gallery .
docker run -p 3000:3000 iris-gallery
或者使用 Docker Compose:
version: '3.8'
services:
iris-gallery:
build: .
ports:
- '3000:3000'
environment:
- NODE_ENV=production
volumes:
- ./config.json:/app/config.json
- ./builder.config.json:/app/builder.config.json
- ./.env:/app/.env
MIT License © 2025