fix: pin postgres image with pgvector support

This commit is contained in:
hicocos committed 2026-08-24 09:17:58 +08:00
1 parent dd7dfabb23
commit 50670672c0
2 files changed
+8 -1

No files matched your search

@@ -0,0 +1,7 @@
import assert from 'node:assert/strict';
import fs from 'node:fs';
import test from 'node:test';
const compose=fs.readFileSync(new URL('../../../docker-compose.yml',import.meta.url),'utf8');
test('database image includes the vector extension required by existing production schema and backups',()=>{
assert.match(compose,/image: pgvector\/pgvector@sha256:[a-f0-9]{64}/);
});
+1 -1
View File
@@ -142,7 +142,7 @@ services:
# 数据库
postgres:
image: postgres@sha256:57c72fd2a128e416c7fcc499958864df5301e940bca0a56f58fddf30ffc07777
image: pgvector/pgvector@sha256:1e4956185a7fd9306a41ee759a7b4329c4faf9a2bb91a1d01437310c97002433
container_name: tg-vault-postgres
environment:
- POSTGRES_DB=tgvault