Update immich version and improve workers

Add new worker role for dedicated workers and add limits to defaults workers
This commit is contained in:
Tobias Reisinger 2025-11-12 00:44:22 +01:00
parent 92e16eea34
commit 92ed74d591
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 101 additions and 8 deletions

View file

@ -4,20 +4,14 @@ immich_db_db: immich
immich_db_user: "{{ vault_immich.db.user }}"
immich_db_pass: "{{ vault_immich.db.pass }}"
immich_docker_tag: v1.137.0
immich_docker_tag: v2.2.3
immich_svc:
domain: "{{ all_services | service_get_domain(role_name) }}"
port: 2283
version: release
db:
host: "{{ postgres.host }}"
database: authentik
immich_env:
# IMMICH_CONFIG_FILE: /immich.json
TZ: "{{ timezone }}"
DB_HOSTNAME: "{{ immich_db_host }}"
@ -40,14 +34,38 @@ immich_compose:
file:
services:
app:
environment:
IMMICH_WORKERS_INCLUDE: api
depends_on:
- database
- redis
worker:
image: ghcr.io/immich-app/immich-server:{{ immich_docker_tag }}
labels:
net.serguzim.logs.collect: true
env_file:
- .env
environment:
IMMICH_WORKERS_EXCLUDE: api
cpus: 1.0
mem_limit: 1g
volumes:
- upload:/usr/src/app/upload
restart: always
networks:
default:
depends_on:
- app
- database
- redis
machine-learning:
image: ghcr.io/immich-app/immich-machine-learning:{{ immich_docker_tag }}
labels:
net.serguzim.logs.collect: true
cpus: 1.0
mem_limit: 1g
volumes:
- model-cache:/cache
env_file:
@ -59,6 +77,8 @@ immich_compose:
redis:
image: redis:6.2-alpine
restart: always
ports:
- "{{ host_vpn_ip }}:2284:6379"
networks:
default:
@ -71,6 +91,8 @@ immich_compose:
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
ports:
- "{{ host_vpn_ip }}:2285:5432"
networks:
default: