差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
tech:photoprism [2023/01/14 22:55] – 建立 jonathan | tech:photoprism [2023/02/09 22:15] (目前版本) – [安裝程序] jonathan | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== | + | ====== 在 Alpine 上安裝 PhotoPrism ====== |
- | * VM : 2vCore / 2GRAM / 32GSSD | + | * VM : 2vCore / 4GRAM / 32GSSD |
* OS : Alpine 3 參考 - [[tech/ | * OS : Alpine 3 參考 - [[tech/ | ||
===== 安裝程序 ===== | ===== 安裝程序 ===== | ||
+ | * 採用 cifs 方式將 NAS 內的 LocalPhotos < | ||
+ | * 處理程序:< | ||
+ | su - | ||
+ | apk add cifs-utils | ||
+ | cat <<EOF | tee /root/.smb > /dev/null | ||
+ | username=jonathan | ||
+ | password=xxxxxxx | ||
+ | EOF | ||
+ | chmod 600 /root/.smb | ||
+ | mkdir -p / | ||
+ | mount -t cifs -o credentials=/ | ||
+ | </ | ||
+ | * 如果可以正確掛上 / | ||
+ | rc-update add netmount | ||
+ | echo "// | ||
+ | </ | ||
+ | * 使用 Docker Compose 進行安裝 <cli> | ||
+ | wget https:// | ||
+ | </ | ||
+ | * 修改 docker-compose.yml 內的 restart, | ||
+ | : | ||
+ | services: | ||
+ | photoprism: | ||
+ | ## Use photoprism/ | ||
+ | image: photoprism/ | ||
+ | depends_on: | ||
+ | - mariadb | ||
+ | ## Don't enable automatic restarts until PhotoPrism has been properly configured and tested! | ||
+ | ## If the service gets stuck in a restart loop, this points to a memory, filesystem, network, or database issue: | ||
+ | ## https:// | ||
+ | restart: unless-stopped | ||
+ | : | ||
+ | PHOTOPRISM_ADMIN_PASSWORD: | ||
+ | : | ||
+ | PHOTOPRISM_SITE_URL: | ||
+ | : | ||
+ | PHOTOPRISM_DATABASE_PASSWORD: | ||
+ | : | ||
+ | : | ||
+ | MARIADB_PASSWORD: | ||
+ | MARIADB_ROOT_PASSWORD: | ||
+ | : | ||
+ | </ | ||
+ | * 啟動服務 <cli> | ||
+ | docker-compose up -d | ||
+ | </ | ||
+ | ===== 開始使用 ===== | ||
+ | * Exp. http:// | ||
+ | * 開始對 NAS 內的 LocalPhotos 建立索引 - Library -> INDEX -> START \\ {{: | ||
+ | ===== 參考網址 ===== | ||
+ | * https:// | ||
+ | * https:// | ||
{{tag>AI 照片管理}} | {{tag>AI 照片管理}} |