You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`DB_DATABASE_NAME`| Database name |`immich`| server, database<sup>\*1</sup> |
83
+
|`DB_SSL_MODE`| Database SSL mode || server |
84
+
|`DB_VECTOR_EXTENSION`<sup>\*2</sup> | Database vector extension (one of [`vectorchord`, `pgvector`, `pgvecto.rs`]) || server |
85
+
|`DB_SKIP_MIGRATIONS`| Whether to skip running migrations on startup (one of [`true`, `false`]) |`false`| server |
86
+
|`DB_STORAGE_TYPE`| Optimize concurrent IO on SSDs or sequential IO on HDDs ([`SSD`, `HDD`])<sup>\*3</sup> |`SSD`| server |
86
87
87
88
\*1: The values of `DB_USERNAME`, `DB_PASSWORD`, and `DB_DATABASE_NAME` are passed to the Postgres container as the variables `POSTGRES_USER`, `POSTGRES_PASSWORD`, and `POSTGRES_DB` in `docker-compose.yml`.
88
89
89
90
\*2: If not provided, the appropriate extension to use is auto-detected at startup by introspecting the database. When multiple extensions are installed, the order of preference is VectorChord, pgvecto.rs, pgvector.
90
91
92
+
\*3: Uses either [`postgresql.ssd.conf`](https://github.com/immich-app/base-images/blob/main/postgres/postgresql.ssd.conf) or [`postgresql.hdd.conf`](https://github.com/immich-app/base-images/blob/main/postgres/postgresql.hdd.conf) which mainly controls the Postgres `effective_io_concurrency` setting to allow for concurrenct IO on SSDs and sequential IO on HDDs.
93
+
91
94
:::info
92
95
93
96
All `DB_` variables must be provided to all Immich workers, including `api` and `microservices`.
0 commit comments