Immich_PostgreSQL
Docker 应用程序 from bmartino1's Repository
概述
This container (based on PostgreSQL 18) is specifically configured for seamless integration with the Immich container, which fulfills the requirement for PostgreSQL for use with Immich. As Immich is taking over the project and maintaining one themselves for their project stack.
See the original project: https://github.com/tensorchord/pgvecto.rs
New Immich database release:
https://github.com/immich-app/immich/discussions/18429
Repo:
https://github.com/immich-app/base-images/pkgs/container/postgres
Configuration Parameters
POSTGRES_PASSWORD - Superuser password.
Default: postgres
Note -- If you change this value, remember to update it in the Immich container configuration as well.
POSTGRES_USER - Username for the superuser.
Default: postgres
Note -- Alterations to this setting should also be mirrored in the Immich container.
POSTGRES_DB - Default database.
Default: postgres
Note -- Any change here should be replicated in the Immich container configuration.
Storage
Data and configuration path: /mnt/user/appdata/postgresql_immich
This is the directory where Postgres stores its application data and configuration files.
要求
Postgres v18 and up!!!
https://hub.docker.com/_/postgres#pgdata
https://github.com/docker-library/postgres/pull/1259
Container data paths change!
ALWAYS MAKE A BACKUP!!! SEE https://immich.app/docs/administration/postgres-standalone/#migrating-to-vectorchord The Immich container and a Redis container
https://hub.docker.com/_/postgres#pgdata
https://github.com/docker-library/postgres/pull/1259
Container data paths change!
ALWAYS MAKE A BACKUP!!! SEE https://immich.app/docs/administration/postgres-standalone/#migrating-to-vectorchord The Immich container and a Redis container
运行时参数
- 网络
host- 外壳
sh- 特权
- false
- 额外参数
--hostname postgres --dns=8.8.8.8
模板配置
POSTGRES_PASSWORDVariable
Initial superuser password (required) Set once at first database creation.
- 价值
- changeme
POSTGRES_USERVariable
Initial superuser name (default: postgres)
- 价值
- postgres
POSTGRES_DBVariable
Initial database name (default: postgres)
- 价值
- immich
Database Storage Path (Appdata)Pathrw
PostgreSQL data storage location https://hub.docker.com/_/postgres#pgdata https://github.com/docker-library/postgres/pull/1259
- 目标
- /var/lib/postgresql/data
- 默认值
- /mnt/user/appdata/postgresql_immich
- 价值
- /mnt/user/appdata/postgresql_immich
PostgreSQL access portPorttcp
PostgreSQL TCP connection port mapped to 5432 Docker bridge NAT
- 目标
- 5432
- 默认值
- 5432
- 价值
- 5432
pgdataVariable
- 目标
- PGDATA
- 默认值
- /var/lib/postgresql/data
- 价值
- /var/lib/postgresql/data
TailScale Fallback State DirectoryVariable{3}
Fallback container directory for Tailscale state information - Added by Community Applications
- 目标
- CA_TS_FALLBACK_DIR
- 默认值
- /var/lib/postgresql/
- 价值
- /var/lib/postgresql/
详细信息
存储库
ghcr.io/immich-app/postgres:18-vectorchord0.5.3-pgvector0.8.1最后更新2026-06-02
初见2025-11-09
在Unraid 上运行 Immich_PostgreSQL 。
Immich_PostgreSQL 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。