screen/HELP.md
2025-12-21 17:34:32 +08:00

12 lines
701 B
Markdown
Raw 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.

docker run -d -p 8080:8080 -e FILE_PATH=/mnt/images --name my-gallery -v /opt/1panel/apps/screen:/mnt/images wangli648438/private-gallery:v1.0
关键配置说明:
端口映射:-p 8080:8080 将容器内部端口映射到主机。
挂载卷:-v /your/local/images:/Users/name/Downloads/image/ 非常关键。因为镜像内部不存储图片,您必须将物理机的图片目录挂载到 application.yml 中定义的 file.path 路径下。
应用环境变量: -e FILE_PATH 图片文件夹根目录 APP_SECURE_PASSWORD 系统登录密码 APP_SECURE_AUTH 系统生成授权码API密钥 APP_SECURE_KEY 系统生成授权码的 AES KEY
APIFOX API 令牌APS-JXFgORmNs7eiW3NsWuBWYfpI6mGvBrFr