diff --git a/immich-machine-learning/1.131.2/data.yml b/immich-machine-learning/1.132.3/data.yml similarity index 100% rename from immich-machine-learning/1.131.2/data.yml rename to immich-machine-learning/1.132.3/data.yml diff --git a/immich-machine-learning/1.131.2/docker-compose.yml b/immich-machine-learning/1.132.3/docker-compose.yml similarity index 93% rename from immich-machine-learning/1.131.2/docker-compose.yml rename to immich-machine-learning/1.132.3/docker-compose.yml index b536990f9..73bf39f06 100644 --- a/immich-machine-learning/1.131.2/docker-compose.yml +++ b/immich-machine-learning/1.132.3/docker-compose.yml @@ -6,7 +6,7 @@ name: immich-machine-learning services: immich-machine-learning: - image: ghcr.io/immich-app/immich-machine-learning:v1.131.2 + image: ghcr.io/immich-app/immich-machine-learning:v1.132.3 container_name: immich-machine-learning-${CONTAINER_NAME} labels: createdBy: "Apps" diff --git a/immich-machine-learning/1.131.2/envs/default.env b/immich-machine-learning/1.132.3/envs/default.env similarity index 100% rename from immich-machine-learning/1.131.2/envs/default.env rename to immich-machine-learning/1.132.3/envs/default.env diff --git a/immich-machine-learning/1.131.2/envs/global.env b/immich-machine-learning/1.132.3/envs/global.env similarity index 100% rename from immich-machine-learning/1.131.2/envs/global.env rename to immich-machine-learning/1.132.3/envs/global.env diff --git a/immich-machine-learning/1.131.2/scripts/init.sh b/immich-machine-learning/1.132.3/scripts/init.sh similarity index 100% rename from immich-machine-learning/1.131.2/scripts/init.sh rename to immich-machine-learning/1.132.3/scripts/init.sh diff --git a/immich-machine-learning/1.131.2/scripts/uninstall.sh b/immich-machine-learning/1.132.3/scripts/uninstall.sh similarity index 100% rename from immich-machine-learning/1.131.2/scripts/uninstall.sh rename to immich-machine-learning/1.132.3/scripts/uninstall.sh diff --git a/immich-machine-learning/1.131.2/scripts/upgrade.sh b/immich-machine-learning/1.132.3/scripts/upgrade.sh similarity index 100% rename from immich-machine-learning/1.131.2/scripts/upgrade.sh rename to immich-machine-learning/1.132.3/scripts/upgrade.sh diff --git a/immich-machine-learning/1.133.0/data.yml b/immich-machine-learning/1.133.0/data.yml new file mode 100644 index 000000000..7321cde6d --- /dev/null +++ b/immich-machine-learning/1.133.0/data.yml @@ -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 diff --git a/immich-machine-learning/1.133.0/docker-compose.yml b/immich-machine-learning/1.133.0/docker-compose.yml new file mode 100644 index 000000000..45fdca580 --- /dev/null +++ b/immich-machine-learning/1.133.0/docker-compose.yml @@ -0,0 +1,31 @@ +networks: + 1panel-network: + external: true + +name: immich-machine-learning + +services: + immich-machine-learning: + image: ghcr.io/immich-app/immich-machine-learning:v1.133.0 + container_name: immich-machine-learning-${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + devices: + - /dev/dri:/dev/dri + # - /dev/nvidia0:/dev/nvidia0 + # - /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 + ports: + - ${PANEL_APP_PORT_HTTP}:3003 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${IMMICH_ROOT_PATH}/data/cache:/cache diff --git a/immich/1.131.2/envs/default.env b/immich-machine-learning/1.133.0/envs/default.env similarity index 100% rename from immich/1.131.2/envs/default.env rename to immich-machine-learning/1.133.0/envs/default.env diff --git a/immich/1.131.2/envs/global.env b/immich-machine-learning/1.133.0/envs/global.env similarity index 100% rename from immich/1.131.2/envs/global.env rename to immich-machine-learning/1.133.0/envs/global.env diff --git a/immich/1.131.2/scripts/init.sh b/immich-machine-learning/1.133.0/scripts/init.sh similarity index 100% rename from immich/1.131.2/scripts/init.sh rename to immich-machine-learning/1.133.0/scripts/init.sh diff --git a/immich/1.131.2/scripts/uninstall.sh b/immich-machine-learning/1.133.0/scripts/uninstall.sh similarity index 100% rename from immich/1.131.2/scripts/uninstall.sh rename to immich-machine-learning/1.133.0/scripts/uninstall.sh diff --git a/immich/1.131.2/scripts/upgrade.sh b/immich-machine-learning/1.133.0/scripts/upgrade.sh similarity index 100% rename from immich/1.131.2/scripts/upgrade.sh rename to immich-machine-learning/1.133.0/scripts/upgrade.sh diff --git a/immich-no-machine/1.133.0/data.yml b/immich-no-machine/1.133.0/data.yml new file mode 100644 index 000000000..093e32b15 --- /dev/null +++ b/immich-no-machine/1.133.0/data.yml @@ -0,0 +1,117 @@ +additionalProperties: + formFields: + - child: + default: "" + envKey: PANEL_REDIS_SERVICE + required: true + type: service + default: redis + envKey: PANEL_REDIS_TYPE + labelZh: Redis 服务 (前置检查) + labelEn: Redis Service (Pre-check) + required: true + type: apps + values: + - label: Redis + value: redis + - default: "/home/immich-app" + 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: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "" + edit: true + envKey: DB_PASSWORD + labelEn: Database Password + labelZh: 数据库连接密码 + random: true + required: true + rule: paramComplexity + type: password + - default: 5432 + edit: true + envKey: PANEL_APP_PORT_DB + labelZh: 数据库 端口 + labelEn: Database Port + required: true + rule: paramPort + type: number + - default: "immich-pg14-vectors" + disabled: true + envKey: DB_HOSTNAME + labelZh: 数据库 主机地址 + labelEn: Database Host + required: true + type: text + - default: "postgres" + disabled: true + envKey: DB_USERNAME + labelZh: 数据库 用户名 + labelEn: Database User + required: true + type: text + - default: "immich" + disabled: true + envKey: DB_DATABASE_NAME + labelZh: 数据库 名称 + labelEn: Database Name + required: true + type: text + - default: "127.0.0.1" + edit: true + envKey: REDIS_HOSTNAME + labelZh: Redis 主机 + labelEn: Redis Host + required: true + type: text + - default: 6379 + edit: true + envKey: REDIS_PORT + labelZh: Redis 端口 + labelEn: Redis Port + required: true + rule: paramPort + type: number + - default: 0 + edit: true + envKey: REDIS_DBINDEX + labelZh: Redis 索引 + labelEn: Redis Index + required: true + type: number + - default: "" + edit: true + envKey: REDIS_USERNAME + labelZh: Redis 用户名 + labelEn: Redis Username + required: false + type: text + - default: "" + edit: true + envKey: REDIS_PASSWORD + labelZh: Redis 密码 + labelEn: Redis Password + required: false + type: password + - default: "false" + edit: true + envKey: IMMICH_IGNORE_MOUNT_CHECK_ERRORS + labelZh: 是否跳过目录检查 + labelEn: Skip Mount Check + required: false + type: select + values: + - label: 跳过检查 + value: "true" + - label: 不跳过检查 + value: "false" diff --git a/immich-no-machine/1.133.0/docker-compose.yml b/immich-no-machine/1.133.0/docker-compose.yml new file mode 100644 index 000000000..f678bbf79 --- /dev/null +++ b/immich-no-machine/1.133.0/docker-compose.yml @@ -0,0 +1,52 @@ +networks: + 1panel-network: + external: true + +name: immich + +services: + immich-pg14-vectors: + image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0 + container_name: pg14-vectors-${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_DB:-5432}:5432 + volumes: + - ${IMMICH_ROOT_PATH}/pg14/data:/var/lib/postgresql/data + environment: + POSTGRES_PASSWORD: ${DB_PASSWORD} + POSTGRES_USER: ${DB_USERNAME:-postgres} + POSTGRES_DB: ${DB_DATABASE_NAME:-immich} + POSTGRES_INITDB_ARGS: '--data-checksums' + + immich-server: + depends_on: + - immich-pg14-vectors + image: ghcr.io/immich-app/immich-server:v1.133.0 + container_name: immich-server-${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + devices: + - /dev/dri:/dev/dri + # - /dev/nvidia0:/dev/nvidia0 + # - /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 + ports: + - ${PANEL_APP_PORT_HTTP}:2283 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${IMMICH_ROOT_PATH}/data/library:/usr/src/app/upload + - /etc/localtime:/etc/localtime diff --git a/immich-no-machine/1.133.0/envs/default.env b/immich-no-machine/1.133.0/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/immich-no-machine/1.133.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/immich-no-machine/1.133.0/envs/global.env b/immich-no-machine/1.133.0/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/immich-no-machine/1.133.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/immich-no-machine/1.133.0/scripts/init.sh b/immich-no-machine/1.133.0/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/immich-no-machine/1.133.0/scripts/init.sh @@ -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 diff --git a/immich-no-machine/1.133.0/scripts/uninstall.sh b/immich-no-machine/1.133.0/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/immich-no-machine/1.133.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/immich-no-machine/1.133.0/scripts/upgrade.sh b/immich-no-machine/1.133.0/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/immich-no-machine/1.133.0/scripts/upgrade.sh @@ -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 diff --git a/immich-server/1.133.0/data.yml b/immich-server/1.133.0/data.yml new file mode 100644 index 000000000..33b62351b --- /dev/null +++ b/immich-server/1.133.0/data.yml @@ -0,0 +1,138 @@ +additionalProperties: + formFields: + - child: + default: "" + envKey: PANEL_REDIS_SERVICE + required: true + type: service + default: redis + envKey: PANEL_REDIS_TYPE + labelZh: Redis 服务 (前置检查) + labelEn: Redis Service (Pre-check) + required: true + type: apps + values: + - label: Redis + value: redis + - child: + default: "" + envKey: PANEL_POSTGRES_SERVICE + required: true + type: service + default: postgresql + envKey: PANEL_POSTGRES_TYPE + labelZh: Postgres 服务 (前置检查) + labelEn: Postgres Service (Pre-check) + required: true + type: apps + values: + - label: PostgreSQL + value: postgresql + - default: "/home/immich-app" + 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: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "Asia/Shanghai" + edit: true + envKey: TZ + labelZh: 时区 + labelEn: Timezone + required: true + type: text + - default: "127.0.0.1" + edit: true + envKey: DB_HOSTNAME + labelZh: 数据库 主机地址 + labelEn: Database Host + required: true + type: text + - default: 5432 + edit: true + envKey: DB_PORT + labelZh: 数据库 端口 + labelEn: Database Port + required: true + rule: paramPort + type: number + - default: "postgres" + edit: true + envKey: DB_USERNAME + labelZh: 数据库 用户名 + labelEn: Database User + required: true + type: text + - default: "" + edit: true + envKey: DB_PASSWORD + labelZh: 数据库 密码 + labelEn: Database Password + random: true + required: true + rule: paramComplexity + type: password + - default: "immich" + edit: true + envKey: DB_DATABASE_NAME + labelZh: 数据库 名称 + labelEn: Database Name + required: true + type: text + - default: "127.0.0.1" + edit: true + envKey: REDIS_HOSTNAME + labelZh: Redis 主机 + labelEn: Redis Host + required: true + type: text + - default: 6379 + edit: true + envKey: REDIS_PORT + labelZh: Redis 端口 + labelEn: Redis Port + required: true + rule: paramPort + type: number + - default: 0 + edit: true + envKey: REDIS_DBINDEX + labelZh: Redis 索引 + labelEn: Redis Index + required: true + type: number + - default: "" + edit: true + envKey: REDIS_USERNAME + labelZh: Redis 用户名 + labelEn: Redis Username + required: false + type: text + - default: "" + edit: true + envKey: REDIS_PASSWORD + labelZh: Redis 密码 + labelEn: Redis Password + required: false + type: password + - default: "false" + edit: true + envKey: IMMICH_IGNORE_MOUNT_CHECK_ERRORS + labelZh: 是否跳过目录检查 + labelEn: Skip Mount Check + required: false + type: select + values: + - label: 跳过检查 + value: "true" + - label: 不跳过检查 + value: "false" diff --git a/immich-server/1.133.0/docker-compose.yml b/immich-server/1.133.0/docker-compose.yml new file mode 100644 index 000000000..1bd2d96df --- /dev/null +++ b/immich-server/1.133.0/docker-compose.yml @@ -0,0 +1,32 @@ +networks: + 1panel-network: + external: true + +name: immich-server + +services: + immich-server: + image: ghcr.io/immich-app/immich-server:v1.133.0 + container_name: immich-server-${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + devices: + - /dev/dri:/dev/dri + # - /dev/nvidia0:/dev/nvidia0 + # - /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 + ports: + - ${PANEL_APP_PORT_HTTP}:2283 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${IMMICH_ROOT_PATH}/data/library:/usr/src/app/upload + - /etc/localtime:/etc/localtime diff --git a/immich-server/1.133.0/envs/default.env b/immich-server/1.133.0/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/immich-server/1.133.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/immich-server/1.133.0/envs/global.env b/immich-server/1.133.0/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/immich-server/1.133.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/immich-server/1.133.0/scripts/init.sh b/immich-server/1.133.0/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/immich-server/1.133.0/scripts/init.sh @@ -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 diff --git a/immich-server/1.133.0/scripts/uninstall.sh b/immich-server/1.133.0/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/immich-server/1.133.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/immich-server/1.133.0/scripts/upgrade.sh b/immich-server/1.133.0/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/immich-server/1.133.0/scripts/upgrade.sh @@ -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 diff --git a/immich/1.131.2/data.yml b/immich/1.132.3/data.yml similarity index 100% rename from immich/1.131.2/data.yml rename to immich/1.132.3/data.yml diff --git a/immich/1.131.2/docker-compose.yml b/immich/1.132.3/docker-compose.yml similarity index 97% rename from immich/1.131.2/docker-compose.yml rename to immich/1.132.3/docker-compose.yml index 897e5a15d..f51771eb0 100644 --- a/immich/1.131.2/docker-compose.yml +++ b/immich/1.132.3/docker-compose.yml @@ -73,7 +73,7 @@ services: - /etc/localtime:/etc/localtime immich-machine-learning: - image: ghcr.io/immich-app/immich-machine-learning:v1.131.2 + image: ghcr.io/immich-app/immich-machine-learning:v1.132.3 container_name: immich-machine-learning-${CONTAINER_NAME} labels: createdBy: "Apps" diff --git a/immich/1.132.3/envs/default.env b/immich/1.132.3/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/immich/1.132.3/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/immich/1.132.3/envs/global.env b/immich/1.132.3/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/immich/1.132.3/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/immich/1.132.3/scripts/init.sh b/immich/1.132.3/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/immich/1.132.3/scripts/init.sh @@ -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 diff --git a/immich/1.132.3/scripts/uninstall.sh b/immich/1.132.3/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/immich/1.132.3/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/immich/1.132.3/scripts/upgrade.sh b/immich/1.132.3/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/immich/1.132.3/scripts/upgrade.sh @@ -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 diff --git a/immich/1.133.0/data.yml b/immich/1.133.0/data.yml new file mode 100644 index 000000000..5dafe3219 --- /dev/null +++ b/immich/1.133.0/data.yml @@ -0,0 +1,156 @@ +additionalProperties: + formFields: + - child: + default: "" + envKey: PANEL_REDIS_SERVICE + required: true + type: service + default: redis + envKey: PANEL_REDIS_TYPE + labelZh: Redis 服务 (前置检查) + labelEn: Redis Service (Pre-check) + required: true + type: apps + values: + - label: Redis + value: redis + - default: "/home/immich-app" + 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: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: 3003 + edit: true + envKey: PANEL_APP_PORT_MACHINE_LEARNING + labelZh: 机器学习端口 + labelEn: Machine Learning port + required: true + rule: paramPort + type: number + - default: "" + edit: true + envKey: DB_PASSWORD + labelEn: Database Password + labelZh: 数据库连接密码 + random: true + required: true + rule: paramComplexity + type: password + - default: 5432 + edit: true + envKey: PANEL_APP_PORT_DB + labelZh: 数据库 端口 + labelEn: Database Port + required: true + rule: paramPort + type: number + - default: "immich-pg14-vectors" + disabled: true + envKey: DB_HOSTNAME + labelZh: 数据库 主机地址 + labelEn: Database Host + required: true + type: text + - default: "postgres" + disabled: true + envKey: DB_USERNAME + labelZh: 数据库 用户名 + labelEn: Database User + required: true + type: text + - default: "immich" + disabled: true + envKey: DB_DATABASE_NAME + labelZh: 数据库 名称 + labelEn: Database Name + required: true + type: text + - default: "127.0.0.1" + edit: true + envKey: REDIS_HOSTNAME + labelZh: Redis 主机 + labelEn: Redis Host + required: true + type: text + - default: 6379 + edit: true + envKey: REDIS_PORT + labelZh: Redis 端口 + labelEn: Redis Port + required: true + rule: paramPort + type: number + - default: 0 + edit: true + envKey: REDIS_DBINDEX + labelZh: Redis 索引 + labelEn: Redis Index + required: true + type: number + - default: "" + edit: true + envKey: REDIS_USERNAME + labelZh: Redis 用户名 + labelEn: Redis Username + required: false + type: text + - default: "" + edit: true + envKey: REDIS_PASSWORD + labelZh: Redis 密码 + labelEn: Redis Password + required: false + type: password + - 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 + rule: paramExtUrl + required: false + type: text + - default: "false" + edit: true + envKey: IMMICH_IGNORE_MOUNT_CHECK_ERRORS + labelZh: 是否跳过目录检查 + labelEn: Skip Mount Check + required: false + type: select + values: + - label: 跳过检查 + value: "true" + - label: 不跳过检查 + value: "false" diff --git a/immich/1.133.0/docker-compose.yml b/immich/1.133.0/docker-compose.yml new file mode 100644 index 000000000..818b79e03 --- /dev/null +++ b/immich/1.133.0/docker-compose.yml @@ -0,0 +1,69 @@ +networks: + 1panel-network: + external: true + +name: immich + +services: + immich-pg14-vectors: + image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0 + container_name: pg14-vectors-${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_DB:-5432}:5432 + volumes: + - ${IMMICH_ROOT_PATH}/pg14/data:/var/lib/postgresql/data + environment: + POSTGRES_PASSWORD: ${DB_PASSWORD} + POSTGRES_USER: ${DB_USERNAME:-postgres} + POSTGRES_DB: ${DB_DATABASE_NAME:-immich} + POSTGRES_INITDB_ARGS: '--data-checksums' + + immich-server: + depends_on: + - immich-pg14-vectors + image: ghcr.io/immich-app/immich-server:v1.133.0 + container_name: immich-server-${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + devices: &default_devices + - /dev/dri:/dev/dri + # - /dev/nvidia0:/dev/nvidia0 + # - /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 + ports: + - ${PANEL_APP_PORT_HTTP}:2283 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${IMMICH_ROOT_PATH}/data/library:/usr/src/app/upload + - /etc/localtime:/etc/localtime + + immich-machine-learning: + image: ghcr.io/immich-app/immich-machine-learning:v1.133.0 + container_name: immich-machine-learning-${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + devices: *default_devices + ports: + - ${PANEL_APP_PORT_MACHINE_LEARNING}:3003 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${IMMICH_ROOT_PATH}/data/cache:/cache diff --git a/immich/1.133.0/envs/default.env b/immich/1.133.0/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/immich/1.133.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/immich/1.133.0/envs/global.env b/immich/1.133.0/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/immich/1.133.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/immich/1.133.0/scripts/init.sh b/immich/1.133.0/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/immich/1.133.0/scripts/init.sh @@ -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 diff --git a/immich/1.133.0/scripts/uninstall.sh b/immich/1.133.0/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/immich/1.133.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/immich/1.133.0/scripts/upgrade.sh b/immich/1.133.0/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/immich/1.133.0/scripts/upgrade.sh @@ -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