immich-postgres

immich-postgres

Application Docker from sgraaf's Repository

Vue d'ensemble

PostgreSQL 14 database for Immich, pre-built with the VectorChord / pgvecto.rs vector extensions that Immich requires. This is the "database" service from the official Immich docker-compose.yml. It must be on the same custom Docker network ("immich") as the Immich server so the server can reach it by the container name "immich-postgres". POSTGRES_PASSWORD here must match DB_PASSWORD in the immich-server container. NOTE: changing the username/database/password after first start has no effect because the data directory is already initialized.

Arguments d'exécution

Réseau
immich
Paramètres supplémentaires
--shm-size=128m

Configuration du modèle

Database passwordVariable

Password for the Postgres database. MUST match DB_PASSWORD set in the immich-server container. Use only A-Za-z0-9 characters.

Cible
POSTGRES_PASSWORD
Database userVariable

Postgres username. MUST match DB_USERNAME in immich-server.

Cible
POSTGRES_USER
Défaut
postgres
Valeur
postgres
Database nameVariable

Postgres database name. MUST match DB_DATABASE_NAME in immich-server.

Cible
POSTGRES_DB
Défaut
immich
Valeur
immich
Init argsVariable

Arguments passed to initdb on first start. Leave as --data-checksums.

Cible
POSTGRES_INITDB_ARGS
Défaut
--data-checksums
Valeur
--data-checksums
DB storage type (HDD)Variable

Optional. Set to HDD if the database data is NOT stored on an SSD. Leave blank for SSD.

Cible
DB_STORAGE_TYPE
Database dataPathrw

Postgres data directory. Equivalent to DB_DATA_LOCATION in the compose .env file. Keep this on fast/SSD storage. Do NOT use a path that is also handled by another mover/backup process that locks files.

Cible
/var/lib/postgresql/data
Défaut
/mnt/user/appdata/immich/postgres
Valeur
/mnt/user/appdata/immich/postgres

Détails

Référentiel
ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
Dernière mise à jour2026-06-01
Première vue2026-05-25

Exécutez immich-postgres sur Unraid.

immich-postgres est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.