概要

フル名
docker.io/twentycrm/twenty-postgres
Registry
docker.io
名前空間
twentycrm
リポジトリ
twenty-postgres
キャッシュ Tag 数
65
最終同期
07/06/2026, 09:32 AM
関連トピック

概要

Twenty CRM 配套 PostgreSQL 镜像,预配置 Twenty 所需扩展与初始化,与 twenty-server 同 compose 部署。

詳細

twentycrm/twenty-postgres 为 Twenty 开源 CRM 定制的 Postgres 镜像,含 schema 初始化脚本。典型与 twenty-server 一起 docker compose 启动,定位为有状态数据库,非通用 Postgres;K8s StatefulSet + PVC。

快速启动

docker run -d --name twenty-postgres \
  -p 5432:5432 \
  -e POSTGRES_PASSWORD=secret \
  -v /data/twenty-pg:/var/lib/postgresql/data \
  docker.io/twentycrm/twenty-postgres:latest

推荐实践

docker run -d --name twenty-postgres \
  --restart unless-stopped \
  -p 5432:5432 \
  -e POSTGRES_PASSWORD=strong-pass \
  -v /data/twenty-pg:/var/lib/postgresql/data \
  docker.io/twentycrm/twenty-postgres:0.32.0

核心参数说明

  • -p 5432:5432 — PostgreSQL 端口
  • -e POSTGRES_PASSWORD — 数据库密码(高敏
  • -v .../data:... — 数据持久化
  • 固定 tag — 与 twenty-server pin

Kubernetes

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: twenty-postgres
spec:
  serviceName: twenty-postgres
  replicas: 1
  selector:
    matchLabels:
      app: twenty-postgres
  template:
    metadata:
      labels:
        app: twenty-postgres
    spec:
      containers:
        - name: postgres
          image: docker.io/twentycrm/twenty-postgres:0.32.0
          ports:
            - containerPort: 5432
          envFrom:
            - secretRef:
                name: twenty-pg-secrets
          volumeMounts:
            - name: data
              mountPath: /var/lib/postgresql/data
  volumeClaimTemplates:
    - metadata:
        name: data
      spec:
        accessModes: [ReadWriteOnce]
        resources:
          requests:
            storage: 20Gi
---
apiVersion: v1
kind: Service
metadata:
  name: twenty-postgres
spec:
  selector:
    app: twenty-postgres
  ports:
    - port: 5432
      targetPort: 5432

twenty-server 通过 Service DNS 连接;定期 pg_dump 备份。

Tagアーキテクチャプッシュ日時サイズDigest同期期望操作
docker.io/twentycrm/twenty-postgres
:main
linux/arm64linux/amd64
2024/11/15 07:09265.6 MBsha256:6980852dccf9
docker.io/twentycrm/twenty-postgres
:latest
linux/arm64linux/amd64
2024/11/09 00:22265.6 MBsha256:f4a0296076e5
docker.io/twentycrm/twenty-postgres
:v0.32
linux/arm64linux/amd64
2024/11/09 00:22265.6 MBsha256:f4a0296076e5
docker.io/twentycrm/twenty-postgres
:v0.32.3
linux/arm64linux/amd64
2024/11/09 00:22265.6 MBsha256:f4a0296076e5
docker.io/twentycrm/twenty-postgres
:v0.32.2
linux/arm64linux/amd64
2024/11/06 23:43265.6 MBsha256:432fc26e95f3
docker.io/twentycrm/twenty-postgres
:v0.32.1
linux/amd64linux/arm64
2024/11/06 23:31274.2 MBsha256:a2d2a0ee1bb2
docker.io/twentycrm/twenty-postgres
:v0.32.0
linux/arm64linux/amd64
2024/11/05 07:19265.6 MBsha256:226deae17f1e
docker.io/twentycrm/twenty-postgres
:v0.31
linux/amd64linux/arm64
2024/10/18 17:02272.4 MBsha256:33d0e29bf204
docker.io/twentycrm/twenty-postgres
:v0.31.3
linux/amd64linux/arm64
2024/10/18 17:02272.4 MBsha256:33d0e29bf204
docker.io/twentycrm/twenty-postgres
:v0.31.2
linux/amd64linux/arm64
2024/10/13 01:35273.2 MBsha256:a183bc7eb3d5
docker.io/twentycrm/twenty-postgres
:v0.31.1
linux/arm64linux/amd64
2024/10/12 23:49264.7 MBsha256:596c31573de0
docker.io/twentycrm/twenty-postgres
:v0.31.0
linux/amd64linux/arm64
2024/10/08 23:24273.2 MBsha256:96d1bbe9114c
docker.io/twentycrm/twenty-postgres
:v0.30
linux/arm64linux/amd64
2024/09/30 22:34264.7 MBsha256:d9d3cd76a787
docker.io/twentycrm/twenty-postgres
:v0.30.2
linux/arm64linux/amd64
2024/09/30 22:34264.7 MBsha256:d9d3cd76a787
docker.io/twentycrm/twenty-postgres
:v0.30.1
linux/amd64linux/arm64
2024/09/30 16:44273.2 MBsha256:0ddb4e8dcd47
docker.io/twentycrm/twenty-postgres
:v0.30.0
linux/amd64linux/arm64
2024/09/28 01:15273.2 MBsha256:0eb8c4e13ffa
docker.io/twentycrm/twenty-postgres
:v0.24.1
linux/arm64linux/amd64
2024/09/01 00:05264.6 MBsha256:7f3812a34133
docker.io/twentycrm/twenty-postgres
:v0.24
linux/arm64linux/amd64
2024/09/01 00:05264.6 MBsha256:7f3812a34133
docker.io/twentycrm/twenty-postgres
:v0.24.0
linux/amd64linux/arm64
2024/08/30 00:29273.1 MBsha256:e92c64862ca8
docker.io/twentycrm/twenty-postgres
:v0.23
linux/amd64linux/arm64
2024/08/28 02:31273.1 MBsha256:c95ed15e6522