PostgreSQL 14 with pgvector/pgvecto.rs extensions for Immich.
services:
immich-postgres:
image: ghcr.io/daemonless/immich-postgres:latest
container_name: immich-postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=immich
volumes:
- /path/to/containers/immich-postgres/var/lib/postgresql/data:/var/lib/postgresql/data
ports:
- 5432:5432
restart: unless-stopped
podman run -d --name immich-postgres \
-p 5432:5432 \
--annotation 'org.freebsd.jail.allow.sysvipc=true' \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=immich \
-v /path/to/containers/immich-postgres/var/lib/postgresql/data:/var/lib/postgresql/data \
ghcr.io/daemonless/immich-postgres:latest
Access at: http://localhost:5432
- name: Deploy immich-postgres
containers.podman.podman_container:
name: immich-postgres
image: ghcr.io/daemonless/immich-postgres:latest
state: started
restart_policy: always
env:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "immich"
ports:
- "5432:5432"
volumes:
- "/path/to/containers/immich-postgres/var/lib/postgresql/data:/var/lib/postgresql/data"
| Variable |
Default |
Description |
POSTGRES_USER |
postgres |
Database superuser (default: postgres) |
POSTGRES_PASSWORD |
postgres |
Database password (default: postgres) |
POSTGRES_DB |
immich |
Database name (default: immich) |
| Path |
Description |
/var/lib/postgresql/data |
Database data directory |
| Port |
Protocol |
Description |
5432 |
TCP |
PostgreSQL Port |
This image is part of the Immich Stack.
- Architectures: amd64
- User:
postgres (UID/GID set via PUID/PGID)
- Base: Built on
ghcr.io/daemonless/base (FreeBSD)