mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-25 09:38:47 +08:00
feat: 新增 PhotoPrism (#1955)
This commit is contained in:
parent
2c7d36b2bc
commit
86ac1da4c5
99
apps/photoprism/240711-ce/data.yml
Normal file
99
apps/photoprism/240711-ce/data.yml
Normal file
@ -0,0 +1,99 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: admin
|
||||
edit: true
|
||||
envKey: ADMIN_USER
|
||||
labelEn: Admin user
|
||||
labelZh: 管理员用户名
|
||||
required: true
|
||||
type: text
|
||||
- default: photoprism
|
||||
edit: true
|
||||
envKey: ADMIN_PASSWORD
|
||||
labelEn: Admin Password
|
||||
labelZh: 管理员密码
|
||||
random: true
|
||||
required: true
|
||||
type: password
|
||||
- default: 2342
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: http://localhost:2342/
|
||||
edit: true
|
||||
envKey: PHOTOPRISM_EXTERNAL_URL
|
||||
labelEn: External URL
|
||||
labelZh: 外部访问地址
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: PANEL_DB_HOST
|
||||
key: mariadb
|
||||
labelEn: MariaDB Database Service
|
||||
labelZh: MariaDB 数据库服务
|
||||
required: true
|
||||
type: service
|
||||
- default: photoprism
|
||||
envKey: PANEL_DB_NAME
|
||||
labelEn: Database
|
||||
labelZh: 数据库名
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: photoprism
|
||||
envKey: PANEL_DB_USER
|
||||
labelEn: User
|
||||
labelZh: 数据库用户
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: photoprism
|
||||
envKey: PANEL_DB_USER_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 数据库用户密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: 1000
|
||||
edit: true
|
||||
envKey: UID
|
||||
labelEn: UID
|
||||
labelZh: UID
|
||||
required: true
|
||||
type: number
|
||||
- default: 1000
|
||||
edit: true
|
||||
envKey: GID
|
||||
labelEn: GID
|
||||
labelZh: GID
|
||||
required: true
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SITE_DESCRIPTION
|
||||
labelEn: Site description
|
||||
labelZh: 网站描述
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SITE_AUTHOR
|
||||
labelEn: Site description
|
||||
labelZh: 网站作者
|
||||
required: false
|
||||
type: text
|
||||
- default: "AI-Powered Photos App"
|
||||
edit: true
|
||||
envKey: SITE_CAPTION
|
||||
labelEn: Site caption
|
||||
labelZh: 网站标题
|
||||
required: false
|
||||
type: text
|
76
apps/photoprism/240711-ce/docker-compose.yml
Normal file
76
apps/photoprism/240711-ce/docker-compose.yml
Normal file
@ -0,0 +1,76 @@
|
||||
services:
|
||||
photoprism:
|
||||
image: photoprism/photoprism:230719
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:2342
|
||||
volumes:
|
||||
- ./data/Pictures:/photoprism/originals # Original media files (DO NOT REMOVE)
|
||||
- ./data/storage:/photoprism/storage # *Writable* storage folder for cache, database, and sidecar files (DO NOT REMOVE)
|
||||
environment:
|
||||
PHOTOPRISM_ADMIN_USER: ${ADMIN_USER} # admin login username
|
||||
PHOTOPRISM_ADMIN_PASSWORD: ${ADMIN_PASSWORD} # initial admin password (8-72 characters)
|
||||
PHOTOPRISM_AUTH_MODE: "password" # authentication mode (public, password)
|
||||
PHOTOPRISM_SITE_URL: ${PHOTOPRISM_EXTERNAL_URL} # server URL in the format "http(s)://domain.name(:port)/(path)"
|
||||
PHOTOPRISM_DISABLE_TLS: "false" # disables HTTPS/TLS even if the site URL starts with https:// and a certificate is available
|
||||
PHOTOPRISM_DEFAULT_TLS: "true" # defaults to a self-signed HTTPS/TLS certificate if no other certificate is available
|
||||
PHOTOPRISM_ORIGINALS_LIMIT: 5000 # file size limit for originals in MB (increase for high-res video)
|
||||
PHOTOPRISM_HTTP_COMPRESSION: "gzip" # improves transfer speed and bandwidth utilization (none or gzip)
|
||||
PHOTOPRISM_LOG_LEVEL: "info" # log level: trace, debug, info, warning, error, fatal, or panic
|
||||
PHOTOPRISM_READONLY: "false" # do not modify originals directory (reduced functionality)
|
||||
PHOTOPRISM_EXPERIMENTAL: "false" # enables experimental features
|
||||
PHOTOPRISM_DISABLE_CHOWN: "false" # disables updating storage permissions via chmod and chown on startup
|
||||
PHOTOPRISM_DISABLE_WEBDAV: "false" # disables built-in WebDAV server
|
||||
PHOTOPRISM_DISABLE_SETTINGS: "false" # disables settings UI and API
|
||||
PHOTOPRISM_DISABLE_TENSORFLOW: "false" # disables all features depending on TensorFlow
|
||||
PHOTOPRISM_DISABLE_FACES: "false" # disables face detection and recognition (requires TensorFlow)
|
||||
PHOTOPRISM_DISABLE_CLASSIFICATION: "false" # disables image classification (requires TensorFlow)
|
||||
PHOTOPRISM_DISABLE_VECTORS: "false" # disables vector graphics support
|
||||
PHOTOPRISM_DISABLE_RAW: "false" # disables indexing and conversion of RAW images
|
||||
PHOTOPRISM_RAW_PRESETS: "false" # enables applying user presets when converting RAW images (reduces performance)
|
||||
PHOTOPRISM_JPEG_QUALITY: 85 # a higher value increases the quality and file size of JPEG images and thumbnails (25-100)
|
||||
PHOTOPRISM_DETECT_NSFW: "false" # automatically flags photos as private that MAY be offensive (requires TensorFlow)
|
||||
PHOTOPRISM_UPLOAD_NSFW: "true" # allows uploads that MAY be offensive (no effect without TensorFlow)
|
||||
# PHOTOPRISM_DATABASE_DRIVER: "sqlite" # SQLite is an embedded database that doesn't require a server
|
||||
PHOTOPRISM_DATABASE_DRIVER: "mysql" # use MariaDB 10.5+ or MySQL 8+ instead of SQLite for improved performance
|
||||
PHOTOPRISM_DATABASE_SERVER: ${PANEL_DB_HOST}:3306 # MariaDB or MySQL database server (hostname:port)
|
||||
PHOTOPRISM_DATABASE_NAME: ${PANEL_DB_NAME} # MariaDB or MySQL database schema name
|
||||
PHOTOPRISM_DATABASE_USER: ${PANEL_DB_USER} # MariaDB or MySQL database user name
|
||||
PHOTOPRISM_DATABASE_PASSWORD: ${PANEL_DB_USER_PASSWORD} # MariaDB or MySQL database user password
|
||||
PHOTOPRISM_SITE_CAPTION: ${SITE_CAPTION}
|
||||
PHOTOPRISM_SITE_DESCRIPTION: ${SITE_DESCRIPTION} # meta site description
|
||||
PHOTOPRISM_SITE_AUTHOR: ${SITE_AUTHOR} # meta site author
|
||||
## Video Transcoding (https://docs.photoprism.app/getting-started/advanced/transcoding/):
|
||||
# PHOTOPRISM_FFMPEG_ENCODER: "software" # H.264/AVC encoder (software, intel, nvidia, apple, raspberry, or vaapi)
|
||||
# PHOTOPRISM_FFMPEG_SIZE: "1920" # video size limit in pixels (720-7680) (default: 3840)
|
||||
# PHOTOPRISM_FFMPEG_BITRATE: "32" # video bitrate limit in Mbit/s (default: 50)
|
||||
## Run/install on first startup (options: update https gpu tensorflow davfs clitools clean):
|
||||
# PHOTOPRISM_INIT: "https gpu tensorflow"
|
||||
## Run as a non-root user after initialization (supported: 0, 33, 50-99, 500-600, and 900-1200):
|
||||
PHOTOPRISM_UID: ${UID:-1000}
|
||||
PHOTOPRISM_GID: ${GID:-1000}
|
||||
# PHOTOPRISM_UMASK: 0000
|
||||
## Start as non-root user before initialization (supported: 0, 33, 50-99, 500-600, and 900-1200):
|
||||
# user: "1000:1000"
|
||||
## Share hardware devices with FFmpeg and TensorFlow (optional):
|
||||
# devices:
|
||||
# - "/dev/dri:/dev/dri" # Intel QSV
|
||||
# - "/dev/nvidia0:/dev/nvidia0" # Nvidia CUDA
|
||||
# - "/dev/nvidiactl:/dev/nvidiactl"
|
||||
# - "/dev/nvidia-modeset:/dev/nvidia-modeset"
|
||||
# - "/dev/nvidia-nvswitchctl:/dev/nvidia-nvswitchctl"
|
||||
# - "/dev/nvidia-uvm:/dev/nvidia-uvm"
|
||||
# - "/dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools"
|
||||
# - "/dev/video11:/dev/video11" # Video4Linux Video Encode Device (h264_v4l2m2m)
|
||||
working_dir: "/photoprism" # do not change or remove
|
||||
security_opt:
|
||||
- seccomp:unconfined
|
||||
- apparmor:unconfined
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
17
apps/photoprism/README.md
Normal file
17
apps/photoprism/README.md
Normal file
@ -0,0 +1,17 @@
|
||||
# PhotoPrism
|
||||
|
||||
**PhotoPrism** 是一款适用于去中心化网络的 AI 照片应用。它利用最新技术自动标记和查找图片,不会妨碍您。您可以在家中、私人服务器或云端运行它。
|
||||
|
||||
## 主要功能:
|
||||
|
||||
- 浏览所有照片和视频,无需担心RAW 转换、重复或视频格式
|
||||
- 使用强大的搜索过滤器轻松找到特定图片
|
||||
- 识别你的家人和朋友的面孔
|
||||
- 根据图片内容和位置自动分类
|
||||
- 将鼠标悬停在相册和搜索结果中的实况照片上即可播放实况照片
|
||||
- 由于用户界面是一个渐进式 Web 应用程序,它提供了类似原生应用程序的体验,您可以方便地将其安装在所有主要操作系统和移动设备的主屏幕上
|
||||
- 包含四张高分辨率世界地图,让您重温最喜爱的旅行回忆
|
||||
- 从 Exif、XMP 和其他来源(例如 Google Photos)提取并合并元数据
|
||||
- 还可以搜索更多图像属性,如颜色、色度和质量
|
||||
- 使用PhotoSync在后台安全备份 iOS 和 Android 手机
|
||||
- WebDAV 客户端(例如 Microsoft 的 Windows Explorer 和 Apple 的 Finder)可以直接连接到 PhotoPrism,这样您就可以打开、编辑和删除计算机上的文件,就像它们是本地文件一样
|
19
apps/photoprism/data.yml
Normal file
19
apps/photoprism/data.yml
Normal file
@ -0,0 +1,19 @@
|
||||
name: PhotoPrism
|
||||
tags:
|
||||
- 多媒体
|
||||
title: 去中心化网络的人工智能照片应用程序
|
||||
description: 去中心化网络的人工智能照片应用程序
|
||||
additionalProperties:
|
||||
key: photoprism
|
||||
name: PhotoPrism
|
||||
tags:
|
||||
- Media
|
||||
shortDescZh: 去中心化网络的人工智能照片应用程序
|
||||
shortDescEn: AI-Powered Photos App for the Decentralized Web
|
||||
type: tool
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
recommend: 0
|
||||
website: https://www.photoprism.app
|
||||
github: https://github.com/photoprism/photoprism
|
||||
document: https://docs.photoprism.app
|
BIN
apps/photoprism/logo.png
Normal file
BIN
apps/photoprism/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
Loading…
Reference in New Issue
Block a user