Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-11-04 03:42:47 +00:00
parent f36f0bd68e
commit 17ee628676
27 changed files with 4 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
# 数据持久化路径 [必填]
IMMICH_ROOT_PATH=/home/immich-machine-learning
# API 端口 [必填]
PANEL_APP_PORT_HTTP=2283
# 硬件驱动路径 [必填]
IMMICH_DRIVE_PATH=/dev/dri
# 时区 [必填]
TZ=Asia/Shanghai
# 机器学习 预加载模型
MACHINE_LEARNING_PRELOAD__CLIP=XLM-Roberta-Large-Vit-B-16Plus
# 人脸识别 预加载模型
MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION=buffalo_l
# Hugging Face 服务地址
HF_ENDPOINT=https://hf-mirror.com
@@ -0,0 +1,61 @@
additionalProperties:
formFields:
- default: "/home/immich-machine-learning"
edit: true
envKey: IMMICH_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 2283
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: API 端口
labelEn: API port
required: true
rule: paramPort
type: number
- default: "/dev/dri"
edit: true
envKey: IMMICH_DRIVE_PATH
labelZh: 硬件驱动路径
labelEn: Drive path
required: true
type: text
- default: "Asia/Shanghai"
edit: true
envKey: TZ
labelZh: 时区
labelEn: Timezone
required: true
type: text
- default: "XLM-Roberta-Large-Vit-B-16Plus"
edit: true
envKey: MACHINE_LEARNING_PRELOAD__CLIP
labelEn: Machine Learning Preload Model
labelZh: 机器学习 预加载模型
required: false
type: text
- default: "buffalo_l"
edit: true
envKey: MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION
labelEn: Machine Learning Preload Model
labelZh: 人脸识别 预加载模型
required: false
type: select
values:
- label: antelopev2
value: "antelopev2"
- label: buffalo_l
value: "buffalo_l"
- label: buffalo_m
value: "buffalo_m"
- label: buffalo_s
value: "buffalo_s"
- default: "https://hf-mirror.com"
edit: true
envKey: HF_ENDPOINT
labelZh: Hugging Face 服务地址
labelEn: Hugging Face Endpoint
required: false
type: text
@@ -0,0 +1,22 @@
name: immich-machine-learning
networks:
1panel-network:
external: true
services:
immich-machine-learning:
container_name: immich-machine-learning
devices:
- /dev/dri:/dev/dri
env_file:
- ./envs/global.env
- .env
image: ghcr.io/immich-app/immich-machine-learning:v2.2.2
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:3003
restart: always
volumes:
- ${IMMICH_ROOT_PATH}/data/cache:/cache
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
@@ -0,0 +1,17 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,17 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi