Configurare Immich tramite Container Station
Configurare Immich tramite Container Station
Buongiorno a tutti,
sto provando da alcuni giorni ad installare Immich sul mio Qnap TS433 ma purtroppo senza successo.
Ho trovato molto utile questo link: https://jojokorpi.ddns.net/wordpress/in ... tallieren/
ma dopo aver installato l'applicazione e avviato il servizio immich ho vari errori di connessione al db che impediscono ovviamente di utilizzare lo strumento.
Qualcuno è riuscito ad installare Immich sui Qnap e può aiutarmi con una guida dettagliata passo-passo?
Grazie mille in anticipo a chiunque possa essermi di aiuto.
sto provando da alcuni giorni ad installare Immich sul mio Qnap TS433 ma purtroppo senza successo.
Ho trovato molto utile questo link: https://jojokorpi.ddns.net/wordpress/in ... tallieren/
ma dopo aver installato l'applicazione e avviato il servizio immich ho vari errori di connessione al db che impediscono ovviamente di utilizzare lo strumento.
Qualcuno è riuscito ad installare Immich sui Qnap e può aiutarmi con una guida dettagliata passo-passo?
Grazie mille in anticipo a chiunque possa essermi di aiuto.
Re: Configurare Immich tramite Container Station
Dopo svariati tentativi sono finalmente riuscito ad installare e utilizzare Immich! Se qualcuno dovesse aver bisogno gli posso spiegare cosa ho dovuto modificare sul file yml.
Re: Configurare Immich tramite Container Station
Ciao, potresti inserire le modifiche effettuate qua con i dettagli ;)
Inviato dal mio SM-S918B utilizzando Tapatalk
Inviato dal mio SM-S918B utilizzando Tapatalk
Nessuna idea è semplice quando devi impiantarla nella mente di un'altra persona
Re: Configurare Immich tramite Container Station
Interesserebbe anche a me ...
- NAS: QNAP TS-653D 16GB (24TB/RAID5 - QTS 5.2.0.2860)
- Backup Unit: QNAP TS-653A 8GB (16TB/RAID5 - QTS 5.2.0.2860)
- UPS: APC Back-UPS BX700
- Client: Macbook Pro (2020) ; Macbook Pro (2016); Macbook Air M1
- Home Cinema: TV Samsung 55C8000 - Apple TV 4th - Samsung BD-C5900 - SkyQ - Denon 1911 - Indiana Line Tesi
- Backup Unit: QNAP TS-653A 8GB (16TB/RAID5 - QTS 5.2.0.2860)
- UPS: APC Back-UPS BX700
- Client: Macbook Pro (2020) ; Macbook Pro (2016); Macbook Air M1
- Home Cinema: TV Samsung 55C8000 - Apple TV 4th - Samsung BD-C5900 - SkyQ - Denon 1911 - Indiana Line Tesi
Re: Configurare Immich tramite Container Station
Ciao a tutti. mi aggiungo alla lista.
ovviamente mi renderei eventualmente disponibile per creare una "guida completa". Prima però avrei bisogno di capire io come fare,visto che non sono molto esperto di docker e non riesco a capire come affrontare l'installazione di IMMICH (da pochissimo scoperta l'esistenza!) sul mio TS233
grazie e visto il periodo buone feste!
Ti sarei molto grato!!!
ovviamente mi renderei eventualmente disponibile per creare una "guida completa". Prima però avrei bisogno di capire io come fare,visto che non sono molto esperto di docker e non riesco a capire come affrontare l'installazione di IMMICH (da pochissimo scoperta l'esistenza!) sul mio TS233
grazie e visto il periodo buone feste!
Re: Configurare Immich tramite Container Station
Ciao a tutti, relativamente ad Immich volevo informarvi che sono riuscito ad installarlo abbastanza agevolmente tramite 'portnainer' che si può installare tramite la repo di 'MyQnap'. Funziona anche molto bene. Al momento mi rimane solamente di poter accedere da remoto tramite 'https'.
Volendo ci possiamo confrontare su questi argomenti.
Fatemi sapere se interessati
Grazie e buone feste
Volendo ci possiamo confrontare su questi argomenti.
Fatemi sapere se interessati
Grazie e buone feste
Re: Configurare Immich tramite Container Station
Grazie, io direi di popolare il topic con le info necessarie...sembra un segreto di stato installare immich sul qnap: D
Inviato dal mio SM-S918B utilizzando Tapatalk
Inviato dal mio SM-S918B utilizzando Tapatalk
Nessuna idea è semplice quando devi impiantarla nella mente di un'altra persona
Re: Configurare Immich tramite Container Station
Di seguito trovate le indicazioni per installare Immich sul Qnap tramite Container Station.
Io ho seguito la guida presente al seguente link effettuando alcune modifiche: https://blog.jjk1.de/index.php/2024/06/ ... tallieren/
Dopo aver scaricato i file example.env e docker-compose.yml li ho modificati nel seguente modo con un edito di testo (al momento non salvateli perché è sufficiente copiare e incollare il contenuto):
echo "# 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=/share/Container/immich/library
# The location where your database files are stored
DB_DATA_LOCATION=/share/Container/immich/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_t ... zones#List
# TZ=Etc/UTC
TZ=Europe/Rome
# 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=AbCdEfGh1234
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich" > .env
Ho inserito echo “...” >.env per poter creare il file tramite linea di comando ssh (ssh admin@<ipNAS> ex: ssh admin@192.156.1.200 ) come specificato nella guida riportata sul sito
Nella riga DB_PASSWORD=AbCdEfGh1234 sostituite la stringa AbCdEfGh1234 con una password (evitate il carattere $)
Il File docker-compose.yml dovrebbe essere simile al seguente, quando ho aggiornato l'applicazione ho dovuto eliminare la prima riga (version: '3').
Controllate tutti i percorsi e le variabili (POSTGRES_PASSWORD: AbCdEfGh1234):
#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/re ... ompose.yml
#
# The compose file on main may not be compatible with the latest release.
#
version: '3'
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server: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
- /share/Container/immich/library:/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, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:release
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-har ... celeration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] 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/redis:6.2-alpine@sha256:2ba50e1ac3a0ea17b736ce9db2b0a9f6f8b85d4c27d5f5accc6a416d8f42c6d5
healthcheck:
test: redis-cli ping || exit 1
restart: always
database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: AbCdEfGh1234
POSTGRES_USER: postgres
POSTGRES_DB: immich
POSTGRES_INITDB_ARGS: '--data-checksums'
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
- /share/Container/immich/postgres:/var/lib/postgresql/data
healthcheck:
interval: 5m
start_interval: 30s
start_period: 5m
restart: always
volumes:
model-cache:
Come descritto nella guida ho creato il file .env inizialmente nella cartella /tmp
e successivamente in /share/Container/container-station-data/application/immich
Aprire Container Station e posizionarsi su Application (seconda voce a sx) e cliccare sul tasto +Create per creare una nuova applicazione.
Copiare il contenuto del file docker-compose.yml e premete il pulsante validate. Se tutto va bene cliccate sul pulsante Create.
Se durante la creazione dovesse andare in errore, tramite ssh create il file .env nella cartella /share/Container/container-station-data/application/immich e riprovate a creare l'applicazione.
Dopo alcuni minuti l'applicazione sarà raggiungibile all'indirizzo ip del NAS seguito dalla porta 2283:
Eempio: http://192.156.1.200:2283
In questo modo sarete in grado di accedere a Immich dalla vostra rete domestica.
Per poter esporre il servizio in internet è possibile configurare un port forward sul vostro router (attenzione!!!) o implementare un reverse proxy.
Per fare questo potete configuare Caddy sempre su Docker o più semplicemente usare il reverse proxy del QNAP. Nel primo caso potreste anche configurare mTLS mentre con il solo QNAP non penso sia fattibile.
Vi consiglio anche di abilitare l'autenticazione OAuth di goggle se decidete di esporre Immich all'esterno.
Io ho seguito la guida presente al seguente link effettuando alcune modifiche: https://blog.jjk1.de/index.php/2024/06/ ... tallieren/
Dopo aver scaricato i file example.env e docker-compose.yml li ho modificati nel seguente modo con un edito di testo (al momento non salvateli perché è sufficiente copiare e incollare il contenuto):
echo "# 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=/share/Container/immich/library
# The location where your database files are stored
DB_DATA_LOCATION=/share/Container/immich/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_t ... zones#List
# TZ=Etc/UTC
TZ=Europe/Rome
# 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=AbCdEfGh1234
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich" > .env
Ho inserito echo “...” >.env per poter creare il file tramite linea di comando ssh (ssh admin@<ipNAS> ex: ssh admin@192.156.1.200 ) come specificato nella guida riportata sul sito
Nella riga DB_PASSWORD=AbCdEfGh1234 sostituite la stringa AbCdEfGh1234 con una password (evitate il carattere $)
Il File docker-compose.yml dovrebbe essere simile al seguente, quando ho aggiornato l'applicazione ho dovuto eliminare la prima riga (version: '3').
Controllate tutti i percorsi e le variabili (POSTGRES_PASSWORD: AbCdEfGh1234):
#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/re ... ompose.yml
#
# The compose file on main may not be compatible with the latest release.
#
version: '3'
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server: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
- /share/Container/immich/library:/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, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:release
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-har ... celeration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] 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/redis:6.2-alpine@sha256:2ba50e1ac3a0ea17b736ce9db2b0a9f6f8b85d4c27d5f5accc6a416d8f42c6d5
healthcheck:
test: redis-cli ping || exit 1
restart: always
database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: AbCdEfGh1234
POSTGRES_USER: postgres
POSTGRES_DB: immich
POSTGRES_INITDB_ARGS: '--data-checksums'
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
- /share/Container/immich/postgres:/var/lib/postgresql/data
healthcheck:
interval: 5m
start_interval: 30s
start_period: 5m
restart: always
volumes:
model-cache:
Come descritto nella guida ho creato il file .env inizialmente nella cartella /tmp
e successivamente in /share/Container/container-station-data/application/immich
Aprire Container Station e posizionarsi su Application (seconda voce a sx) e cliccare sul tasto +Create per creare una nuova applicazione.
Copiare il contenuto del file docker-compose.yml e premete il pulsante validate. Se tutto va bene cliccate sul pulsante Create.
Se durante la creazione dovesse andare in errore, tramite ssh create il file .env nella cartella /share/Container/container-station-data/application/immich e riprovate a creare l'applicazione.
Dopo alcuni minuti l'applicazione sarà raggiungibile all'indirizzo ip del NAS seguito dalla porta 2283:
Eempio: http://192.156.1.200:2283
In questo modo sarete in grado di accedere a Immich dalla vostra rete domestica.
Per poter esporre il servizio in internet è possibile configurare un port forward sul vostro router (attenzione!!!) o implementare un reverse proxy.
Per fare questo potete configuare Caddy sempre su Docker o più semplicemente usare il reverse proxy del QNAP. Nel primo caso potreste anche configurare mTLS mentre con il solo QNAP non penso sia fattibile.
Vi consiglio anche di abilitare l'autenticazione OAuth di goggle se decidete di esporre Immich all'esterno.
-
- Messaggi: 71
- Iscritto il: 10 feb 2020, 23:41
Re: Configurare Immich tramite Container Station
Ciao a tutti,
per coloro che usano Portainer vi allego quelle che sono le impostazioni (è necessaria una piccola modifica ma nulla di complesso):
#
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:
- stack.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, openvino] 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-har ... celeration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
env_file:
- stack.env
restart: always
healthcheck:
disable: false
redis:
container_name: immich_redis
image: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
healthcheck:
test: redis-cli ping || exit 1
restart: always
database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
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
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align
--command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
echo "checksum failure count is $$Chksum";
[ "$$Chksum" = '0' ] || exit 1
interval: 5m
start_interval: 30s
start_period: 5m
command: >-
postgres
-c shared_preload_libraries=vectors.so
-c 'search_path="$$user", public, vectors'
-c logging_collector=on
-c max_wal_size=2GB
-c shared_buffers=512MB
-c wal_compression=on
restart: always
volumes:
model-cache:
Per le Variabili invece ho fatto copia incolla dentro l'editor di Portainer (ovviamente adattandole)
# Dove salvo le immagini
UPLOAD_LOCATION=/share/CACHEDEV2_DATA/Immagini
# Percorso Database
DB_DATA_LOCATION=/share/CACHEDEV2_DATA/apps/immich/postgres
TZ=Europe/Rome
IMMICH_VERSION=release
DB_PASSWORD=Imposta qui la password scelta (escluso il simbolo del dollaro "$")
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
In questo modo senza dover apporre ulteriori modifiche ai file viene creato il Container con tutte le dipendenze necessarie Andando poi su
IP_HOST:2283
Parte il setup del programma Spero possa essere utile come Guida.
per coloro che usano Portainer vi allego quelle che sono le impostazioni (è necessaria una piccola modifica ma nulla di complesso):
#
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:
- stack.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, openvino] 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-har ... celeration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
env_file:
- stack.env
restart: always
healthcheck:
disable: false
redis:
container_name: immich_redis
image: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
healthcheck:
test: redis-cli ping || exit 1
restart: always
database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
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
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align
--command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
echo "checksum failure count is $$Chksum";
[ "$$Chksum" = '0' ] || exit 1
interval: 5m
start_interval: 30s
start_period: 5m
command: >-
postgres
-c shared_preload_libraries=vectors.so
-c 'search_path="$$user", public, vectors'
-c logging_collector=on
-c max_wal_size=2GB
-c shared_buffers=512MB
-c wal_compression=on
restart: always
volumes:
model-cache:
Per le Variabili invece ho fatto copia incolla dentro l'editor di Portainer (ovviamente adattandole)
# Dove salvo le immagini
UPLOAD_LOCATION=/share/CACHEDEV2_DATA/Immagini
# Percorso Database
DB_DATA_LOCATION=/share/CACHEDEV2_DATA/apps/immich/postgres
TZ=Europe/Rome
IMMICH_VERSION=release
DB_PASSWORD=Imposta qui la password scelta (escluso il simbolo del dollaro "$")
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
In questo modo senza dover apporre ulteriori modifiche ai file viene creato il Container con tutte le dipendenze necessarie Andando poi su
IP_HOST:2283
Parte il setup del programma Spero possa essere utile come Guida.
- NAS: TS-453Be 8GB (16TB/RAID5 - QTS 5.1.0.2466)
- Backup Unit: Nessuna Unità (Per ora)
- Backup Unit: Nessuna Unità (Per ora)