--- apiVersion: apps/v1 kind: Deployment metadata: name: immich-db namespace: default spec: selector: matchLabels: app: immich-db template: metadata: labels: app: immich-db spec: containers: - name: redis image: docker.io/valkey/valkey:8-bookworm@sha256:facc1d2c3462975c34e10fccb167bfa92b0e0dbd992fc282c29a61c3243afb11 env: - name: REDIS_HOSTNAME value: "immich-redis" ports: - containerPort: 6379 - name: immich-psql image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0 ports: - containerPort: 5432 env: - name: POSTGRES_PASSWORD valueFrom: secretKeyRef: name: immich-postgres-secret key: password - name: POSTGRES_USER value: "postgres" - name: POSTGRES_DB value: "immich" - name: POSTGRES_INITDB_ARGS value: "--data-checksums" volumeMounts: - mountPath: /var/lib/postgresql/data name: immich volumes: - name: immich nfs: server: 10.0.0.10 path: /home/akshun/immich-data