镜像概览
- 完整引用
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(20 条)
查看全部 65 个 Tag →| Tag | 架构 | 推送时间 | 大小 | Digest | 同步 | 期望 | 操作 |
|---|---|---|---|---|---|---|---|
docker.io/twentycrm/twenty-postgres :main | linux/arm64linux/amd64 | 2024/11/15 07:09 | 265.6 MB | sha256:6980852dccf9… | |||
docker.io/twentycrm/twenty-postgres :latest | linux/arm64linux/amd64 | 2024/11/09 00:22 | 265.6 MB | sha256:f4a0296076e5… | |||
docker.io/twentycrm/twenty-postgres :v0.32 | linux/arm64linux/amd64 | 2024/11/09 00:22 | 265.6 MB | sha256:f4a0296076e5… | |||
docker.io/twentycrm/twenty-postgres :v0.32.3 | linux/arm64linux/amd64 | 2024/11/09 00:22 | 265.6 MB | sha256:f4a0296076e5… | |||
docker.io/twentycrm/twenty-postgres :v0.32.2 | linux/arm64linux/amd64 | 2024/11/06 23:43 | 265.6 MB | sha256:432fc26e95f3… | |||
docker.io/twentycrm/twenty-postgres :v0.32.1 | linux/amd64linux/arm64 | 2024/11/06 23:31 | 274.2 MB | sha256:a2d2a0ee1bb2… | |||
docker.io/twentycrm/twenty-postgres :v0.32.0 | linux/arm64linux/amd64 | 2024/11/05 07:19 | 265.6 MB | sha256:226deae17f1e… | |||
docker.io/twentycrm/twenty-postgres :v0.31 | linux/amd64linux/arm64 | 2024/10/18 17:02 | 272.4 MB | sha256:33d0e29bf204… | |||
docker.io/twentycrm/twenty-postgres :v0.31.3 | linux/amd64linux/arm64 | 2024/10/18 17:02 | 272.4 MB | sha256:33d0e29bf204… | |||
docker.io/twentycrm/twenty-postgres :v0.31.2 | linux/amd64linux/arm64 | 2024/10/13 01:35 | 273.2 MB | sha256:a183bc7eb3d5… | |||
docker.io/twentycrm/twenty-postgres :v0.31.1 | linux/arm64linux/amd64 | 2024/10/12 23:49 | 264.7 MB | sha256:596c31573de0… | |||
docker.io/twentycrm/twenty-postgres :v0.31.0 | linux/amd64linux/arm64 | 2024/10/08 23:24 | 273.2 MB | sha256:96d1bbe9114c… | |||
docker.io/twentycrm/twenty-postgres :v0.30 | linux/arm64linux/amd64 | 2024/09/30 22:34 | 264.7 MB | sha256:d9d3cd76a787… | |||
docker.io/twentycrm/twenty-postgres :v0.30.2 | linux/arm64linux/amd64 | 2024/09/30 22:34 | 264.7 MB | sha256:d9d3cd76a787… | |||
docker.io/twentycrm/twenty-postgres :v0.30.1 | linux/amd64linux/arm64 | 2024/09/30 16:44 | 273.2 MB | sha256:0ddb4e8dcd47… | |||
docker.io/twentycrm/twenty-postgres :v0.30.0 | linux/amd64linux/arm64 | 2024/09/28 01:15 | 273.2 MB | sha256:0eb8c4e13ffa… | |||
docker.io/twentycrm/twenty-postgres :v0.24.1 | linux/arm64linux/amd64 | 2024/09/01 00:05 | 264.6 MB | sha256:7f3812a34133… | |||
docker.io/twentycrm/twenty-postgres :v0.24 | linux/arm64linux/amd64 | 2024/09/01 00:05 | 264.6 MB | sha256:7f3812a34133… | |||
docker.io/twentycrm/twenty-postgres :v0.24.0 | linux/amd64linux/arm64 | 2024/08/30 00:29 | 273.1 MB | sha256:e92c64862ca8… | |||
docker.io/twentycrm/twenty-postgres :v0.23 | linux/amd64linux/arm64 | 2024/08/28 02:31 | 273.1 MB | sha256:c95ed15e6522… |