-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
66 lines (56 loc) · 2.13 KB
/
compose.yaml
File metadata and controls
66 lines (56 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: immich-postgres
x-daemonless:
title: "Immich PostgreSQL"
icon: ":simple-postgresql:"
category: "Databases"
description: "PostgreSQL with pgvector and vectorchord extensions required by Immich for vector similarity search. Defaults to PostgreSQL 14 (:latest), PostgreSQL 18 available as :18."
upstream_url: "https://github.com/immich-app/immich"
web_url: "https://immich.app/"
freshports_url: "https://www.freshports.org/databases/postgresql14-server/"
user: "postgres"
mlock: false
upstream_binary: true
appjail:
appjail:
makejail:
options:
- "template: !ENV '${PWD}/immich-postgres.conf'"
notes: |
This image is part of the [Immich Stack](https://daemonless.io/images/immich).
**PostgreSQL version:** `:latest` and `:14` use PostgreSQL 14. `:18` uses PostgreSQL 18.
New installations should consider `:18`. If you are migrating an existing Immich instance,
stay on `:14` — PostgreSQL major version upgrades require a full `pg_dumpall` and restore.
The default `:latest` tag will follow whatever version Immich recommends upstream.
PostgreSQL requires `allow.sysvipc` for shared memory. Create `immich-postgres.conf` alongside `appjail-director.yml`:
```
exec.start: "/bin/sh /etc/rc"
exec.stop: "/bin/sh /etc/rc.shutdown jail"
mount.devfs
persist
allow.sysvipc
```
docs:
env:
POSTGRES_USER: "Database superuser (default: postgres)"
POSTGRES_PASSWORD: "Database password (default: postgres)"
POSTGRES_DB: "Database name (default: immich)"
POSTGRES_INITDB_ARGS: "Additional initdb arguments"
volumes:
/var/lib/postgresql/data: "Database data directory"
ports:
5432: "PostgreSQL Port"
services:
immich-postgres:
image: ghcr.io/daemonless/immich-postgres:latest
container_name: immich-postgres
restart: unless-stopped
annotations:
org.freebsd.jail.allow.sysvipc: "true"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=immich
volumes:
- /path/to/containers/immich/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"