Files
flypic/docker-compose.yml
T
jinghui c25f8b474c feat: AI生图弹窗新增生图模型点选 (v1.4.11)
- 弹窗按通道分组列出8个可选模型(CF Workers AI/Pollinations), 点击即选中高亮
- 所选模型存localStorage下次沿用; 自动初始化=设置默认模型
- generate带model参数(effModel=前端所选>设置默认), 后端加ALLOWED_MODELS白名单, 未知模型400
- 实测点选Pollinations动漫出图返回model=pollinations-flux-anime; 白名单拦截bogus-model
- 版本号4处升至1.4.11, CHANGELOG补条目
2026-11-19 14:38:18 +08:00

40 lines
1.8 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/发布到平台的图片和视频
# 持久化配置(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.11
# 让容器经 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