Ik heb Immich proberen te installeren met het default installatie-script voor Portainer. Geen succes, startte niet en als ik er zo naar kijk mis ik echt van alles (waarvan ik niet weet wat, maar wel de locatie(s) op mijn NAS).
In een chat met GPT heb ik het uiteindelijk aan de praat gekregen maar bij de eerste update was het al weer lastig. Ik wil dus eigenlijk een zo uniforme installatie zonder gekke afwijkingen, maar die wel werkt!
Ter info: ik heb echt geen idee welke dingen ik wel of niet moet opnemen om het te laten werken.
Huidige compose (via ChatGPT)
En de environment settings:
Immich's eigen compose (Docker en Portainer):
En Immich's environment:
Wat moet ik in de default compose en environments overnemen uit mijn eigen om het werkend te krijgen?
Het mag overigens ook via Docker Compose, wat dan op mijn Synology op een project neerkomt volgens mij.
En nog een bonusvraag: ik kreeg het met importeren (50k fotos) niet voor elkaar (ik begrijp deze instructie dus niet), dus ik heb nu een external library (waar ergens import path stond, maar dat is dus geen import) maar dat werkt voor geen meter. Wat moet ik doen om bulk te kunnen importeren?
In een chat met GPT heb ik het uiteindelijk aan de praat gekregen maar bij de eerste update was het al weer lastig. Ik wil dus eigenlijk een zo uniforme installatie zonder gekke afwijkingen, maar die wel werkt!
Ter info: ik heb echt geen idee welke dingen ik wel of niet moet opnemen om het te laten werken.
Huidige compose (via ChatGPT)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
| services: immich-redis: image: redis container_name: Immich-REDIS hostname: immich-redis security_opt: - no-new-privileges:true healthcheck: test: ["CMD-SHELL", "redis-cli ping || exit 1"] user: 1026:101 environment: - TZ=Europe/Amsterdam volumes: - /volume1/MediaStation/Bibliotheek/Docker/Immich/redis:/data:rw restart: on-failure:5 immich-db: image: tensorchord/pgvecto-rs:pg16-v0.2.0 container_name: Immich-DB hostname: immich-db security_opt: - no-new-privileges:true healthcheck: test: ["CMD", "pg_isready", "-q", "-d", "immich", "-U", "immichuser"] interval: 10s timeout: 5s retries: 5 volumes: - /volume1/MediaStation/Bibliotheek/Docker/Immich/db:/var/lib/postgresql/data:rw environment: - TZ=Europe/Amsterdam - POSTGRES_DB=immich - POSTGRES_USER=immichuser - POSTGRES_PASSWORD=immichpw restart: on-failure:5 immich-server: image: ghcr.io/immich-app/immich-server:release container_name: Immich-SERVER hostname: immich-server user: 1026:101 security_opt: - no-new-privileges:true env_file: - stack.env ports: - 8212:2283 volumes: - /volume1/MediaStation/Bibliotheek/Docker/Immich/upload:/usr/src/app/upload:rw - /volume1/MediaStation/Afbeeldingen/Bibliotheek:/usr/src/app/import:ro restart: on-failure:5 depends_on: immich-redis: condition: service_healthy immich-db: condition: service_started immich-machine-learning: image: ghcr.io/immich-app/immich-machine-learning:release container_name: Immich-LEARNING hostname: immich-machine-learning user: 1026:100 security_opt: - no-new-privileges:true env_file: - stack.env volumes: - /volume1/MediaStation/Bibliotheek/Docker/Immich/upload:/usr/src/app/upload:rw - /volume1/MediaStation/Bibliotheek/Docker/Immich/cache:/cache:rw - /volume1/MediaStation/Bibliotheek/Docker/Immich/matplotlib:/matplotlib:rw environment: - MPLCONFIGDIR=/matplotlib restart: on-failure:5 depends_on: immich-db: condition: service_started |
En de environment settings:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| NODE_ENV=production TZ=Europe/Amsterdam DB_HOSTNAME=immich-db DB_USERNAME=immichuser DB_PASSWORD=immichpw DB_DATABASEN_NAME=immich REDIS_HOSTNAME=immich-redis LOG_LEVEL=log JWT_SECRET=**** DISABLE_REVERSE_GEOCODING=false PUBLIC_LOGIN_PAGE_MESSAGE= IMMICH_WEB_URL=http://immich-web:3000 IMMICH_SERVER_URL=http://immich-server:3001 IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003 REVERSE_GEOCODING_PRECISION=3 IMMICH_IMPORT_PATH=/usr/src/app/import |
Immich's eigen compose (Docker en Portainer):
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
| # # WARNING: To install Immich, follow our guide: https://immich.app/docs/install/docker-compose # # Make sure to use the docker-compose.yml of the current release: # # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml # # The compose file on main may not be compatible with the latest release. name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.transcoding.yml # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding volumes: # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env ports: - '2283:2283' depends_on: - redis - database restart: always healthcheck: disable: false immich-machine-learning: container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: - model-cache:/cache env_file: - .env restart: always healthcheck: disable: false redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884 healthcheck: test: redis-cli ping || exit 1 restart: always database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0@sha256:fa4f6e0971f454cd95fec5a9aaed2ed93d8f46725cc6bc61e0698e97dba96da1 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs # DB_STORAGE_TYPE: 'HDD' volumes: # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file - ${DB_DATA_LOCATION}:/var/lib/postgresql/data restart: always volumes: model-cache: |
En Immich's environment:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| # 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=./library # The location where your database files are stored. Network shares are not supported for the database DB_DATA_LOCATION=./postgres # To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List # TZ=Etc/UTC # 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 # Please use only the characters `A-Za-z0-9`, without special characters or spaces DB_PASSWORD=postgres # The values below this line do not need to be changed ################################################################################### DB_USERNAME=postgres DB_DATABASE_NAME=immich |
Wat moet ik in de default compose en environments overnemen uit mijn eigen om het werkend te krijgen?
Het mag overigens ook via Docker Compose, wat dan op mijn Synology op een project neerkomt volgens mij.
En nog een bonusvraag: ik kreeg het met importeren (50k fotos) niet voor elkaar (ik begrijp deze instructie dus niet), dus ik heb nu een external library (waar ergens import path stond, maar dat is dus geen import) maar dat werkt voor geen meter. Wat moet ik doen om bulk te kunnen importeren?