Files
flypic/docker-compose.yml
T
jinghui a793eadb32 v1.4.14: 灯箱缩略图条只列图片(视频/文档不混入) + 新增素材目录挂载
- 灯箱列表 lightboxImages 只收图片, providerImages/PhotoStrip 同源对齐
- handleImageDoubleClick 全量索引→图片子集索引映射, 视频/文档双击仍走 FileViewer
- docker-compose.yml/README 补挂载 /vol2/1000/HD2/素材 (修「素材库路径不存在」)
- 版本 4 处升 1.4.14
2026-11-20 19:22:34 +08:00

41 lines
1.9 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
flypic:
# 镜像:公网可匿名拉取(内网镜像同名在 192.168.68.19:3200/jinghui/flypic)
image: jpccr.ccs.tencentyun.com/jinghui/flypic:latest
build:
context: .
dockerfile: Dockerfile
container_name: flypic
restart: unless-stopped
ports:
- "15002:15002"
volumes:
# 素材库目录(容器内路径与飞牛一致,直接填实际路径即可)
- /vol2/1000/HD2/壁纸:/vol2/1000/HD2/壁纸
- /vol2/1000/HD2/我的文档:/vol2/1000/HD2/我的文档
- /vol2/1000/HD2/发布到平台的图片和视频:/vol2/1000/HD2/发布到平台的图片和视频
- /vol2/1000/HD2/素材:/vol2/1000/HD2/素材
# 持久化配置(config.json 存储素材库路径、密码等,不用改)
- /vol3/1000/HD3/docker/flypic/config:/root/.flypic
environment:
- PORT=15002
- FRONTEND_DIST=/app/backend/public
- NODE_ENV=production
# AI 图像处理侧车(去背景/高清/去水印/换脸)——宿主机 systemd flypic-ai 监听 127.0.0.1:15003
- AI_BASE_URL=http://host.docker.internal:15003
# 授权系统(CardAuth):版本推送 / 公告 / 在线人数统计 —— 失败开放,不可达不影响使用
- HUB_URL=https://auth.88531.cn/api
- HUB_PROJECT_ID=15
- HUB_API_KEY=${HUB_API_KEY:-}
- NEWAPI_KEY=${NEWAPI_KEY:-}
# 当前站点版本(与 frontend/package.json、CHANGELOG 保持一致,界面版本徽标来源)
- SITE_VERSION=1.4.14
# 让容器经 host.docker.internal 访问宿主机的 AI 侧车
extra_hosts:
- "host.docker.internal:host-gateway"
# 如需挂载多个素材库,取消注释并修改路径:
# volumes:
# - /vol1/1000/图片库:/data/library1:ro
# - /vol2/1000/素材:/data/library2:ro
# - /vol1/1000/docker/flypic/config:/root/.flypic