immich-postgres
Docker 应用程序 from sgraaf's Repository
概述
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.
运行时参数
- 网络
immich- 额外参数
--shm-size=128m
模板配置
Database passwordVariable
Password for the Postgres database. MUST match DB_PASSWORD set in the immich-server container. Use only A-Za-z0-9 characters.
- 目标
- POSTGRES_PASSWORD
Database userVariable
Postgres username. MUST match DB_USERNAME in immich-server.
- 目标
- POSTGRES_USER
- 默认值
- postgres
- 价值
- postgres
Database nameVariable
Postgres database name. MUST match DB_DATABASE_NAME in immich-server.
- 目标
- POSTGRES_DB
- 默认值
- immich
- 价值
- immich
Init argsVariable
Arguments passed to initdb on first start. Leave as --data-checksums.
- 目标
- POSTGRES_INITDB_ARGS
- 默认值
- --data-checksums
- 价值
- --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.
- 目标
- 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.
- 目标
- /var/lib/postgresql/data
- 默认值
- /mnt/user/appdata/immich/postgres
- 价值
- /mnt/user/appdata/immich/postgres
详细信息
存储库
ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0最后更新2026-05-31
初见2026-05-25
在Unraid 上运行 immich-postgres 。
immich-postgres 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。