1
0

feat:添加immich到列表

This commit is contained in:
okxlin
2024-01-11 12:12:38 +08:00
parent bd92b06d78
commit 2995516cd8
11 changed files with 471 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
CONTAINER_NAME="immich"
PANEL_APP_PORT_HTTP="40194"
PANEL_DB_NAME="immich"
PANEL_DB_USER="postgres"
PANEL_DB_USER_PASSWORD="immich_BfcHCZ"
UPLOAD_LOCATION="./data/upload"
CACHE_PATH="./data/cache"
DB_PATH="./data/data"

View File

@@ -0,0 +1,18 @@
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
# The location where your uploaded files are stored
UPLOAD_LOCATION=${UPLOAD_LOCATION}
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
#IMMICH_VERSION=release
# Connection secret for postgres. You should change it to a random password
DB_PASSWORD=${PANEL_DB_USER_PASSWORD}
# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=${CONTAINER_NAME}-postgres
DB_USERNAME=${PANEL_DB_USER}
DB_DATABASE_NAME=${PANEL_DB_NAME}
REDIS_HOSTNAME=${CONTAINER_NAME}-redis

View File

@@ -0,0 +1,56 @@
additionalProperties:
formFields:
- default: 40194
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data/upload
edit: true
envKey: UPLOAD_LOCATION
labelEn: Path to folder for uploading
labelZh: 上传用文件夹路径
required: true
type: text
- default: ./data/cache
edit: true
envKey: CACHE_PATH
labelEn: Cache folder path
labelZh: 缓存文件夹路径
required: true
type: text
- default: ./data/data
edit: true
envKey: DB_PATH
labelEn: Database folder path
labelZh: 数据库文件夹路径
required: true
type: text
- default: immich
edit: true
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
required: true
rule: paramCommon
type: text
- default: postgres
edit: true
envKey: PANEL_DB_USER
labelEn: Postgres User
labelZh: Postgres 数据库用户
required: true
rule: paramCommon
type: text
- default: immich
edit: true
envKey: PANEL_DB_USER_PASSWORD
labelEn: Postgres Password
labelZh: Postgres 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password

View File

@@ -0,0 +1,85 @@
version: '3'
services:
immich-server:
container_name: ${CONTAINER_NAME}-server
restart: always
networks:
- 1panel-network
image: altran1502/immich-server:release
command: [ "start.sh", "immich" ]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- config.env
ports:
- ${PANEL_APP_PORT_HTTP}:3001
depends_on:
- immich-redis
- immich-database
labels:
createdBy: "Apps"
immich-microservices:
container_name: ${CONTAINER_NAME}-microservices
restart: always
networks:
- 1panel-network
image: altran1502/immich-server:release
# extends:
# file: hwaccel.yml
# service: hwaccel
command: [ "start.sh", "microservices" ]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- config.env
depends_on:
- immich-redis
- immich-database
labels:
createdBy: "Apps"
immich-machine-learning:
container_name: ${CONTAINER_NAME}-machine_learning
restart: always
networks:
- 1panel-network
image: altran1502/immich-machine-learning:release
volumes:
- ${CACHE_PATH}:/cache
env_file:
- config.env
labels:
createdBy: "Apps"
immich-redis:
container_name: ${CONTAINER_NAME}-redis
restart: always
networks:
- 1panel-network
image: "redis:6.2-alpine@sha256:c5a607fb6e1bb15d32bbcf14db22787d19e428d59e31a5da67511b49bb0f1ccc"
labels:
createdBy: "Apps"
immich-database:
container_name: ${CONTAINER_NAME}-postgres
restart: always
networks:
- 1panel-network
image: "tensorchord/pgvecto-rs:pg14-v0.1.11@sha256:0335a1a22f8c5dd1b697f14f079934f5152eaaa216c09b61e293be285491f8ee"
env_file:
- config.env
environment:
- POSTGRES_PASSWORD=${PANEL_DB_USER_PASSWORD}
- POSTGRES_USER=${PANEL_DB_USER}
- POSTGRES_DB=${PANEL_DB_NAME}
volumes:
- ${DB_PATH}:/var/lib/postgresql/data
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true