mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00
update docker-compose (#1414)
This commit is contained in:
@@ -5,8 +5,8 @@
|
|||||||
version: '3.3'
|
version: '3.3'
|
||||||
services:
|
services:
|
||||||
pg:
|
pg:
|
||||||
image: ankane/pgvector:v0.5.0 # git
|
# image: pgvector/pgvector:0.7.0-pg15 # docker hub
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/pgvector:v0.5.0 # 阿里云
|
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/pgvector:v0.7.0 # 阿里云
|
||||||
container_name: pg
|
container_name: pg
|
||||||
restart: always
|
restart: always
|
||||||
ports: # 生产环境建议不要暴露
|
ports: # 生产环境建议不要暴露
|
||||||
|
@@ -9,7 +9,7 @@ export const checkTimerLock = async ({
|
|||||||
timerId,
|
timerId,
|
||||||
lockMinuted
|
lockMinuted
|
||||||
}: {
|
}: {
|
||||||
timerId: `${TimerIdEnum}`;
|
timerId: TimerIdEnum;
|
||||||
lockMinuted: number;
|
lockMinuted: number;
|
||||||
}) => {
|
}) => {
|
||||||
try {
|
try {
|
||||||
|
@@ -23,7 +23,7 @@ export async function initPg() {
|
|||||||
`);
|
`);
|
||||||
|
|
||||||
await PgClient.query(
|
await PgClient.query(
|
||||||
`CREATE INDEX CONCURRENTLY IF NOT EXISTS vector_index ON ${PgDatasetTableName} USING hnsw (vector vector_ip_ops) WITH (m = 32, ef_construction = 100);`
|
`CREATE INDEX CONCURRENTLY IF NOT EXISTS vector_index ON ${PgDatasetTableName} USING hnsw (vector vector_ip_ops) WITH (m = 32, ef_construction = 128);`
|
||||||
);
|
);
|
||||||
await PgClient.query(
|
await PgClient.query(
|
||||||
`CREATE INDEX CONCURRENTLY IF NOT EXISTS team_dataset_collection_index ON ${PgDatasetTableName} USING btree(team_id, dataset_id, collection_id);`
|
`CREATE INDEX CONCURRENTLY IF NOT EXISTS team_dataset_collection_index ON ${PgDatasetTableName} USING btree(team_id, dataset_id, collection_id);`
|
||||||
|
@@ -80,7 +80,7 @@ const nextConfig = {
|
|||||||
|
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
transpilePackages: ['@fastgpt/*', 'ahooks'],
|
transpilePackages: ['@fastgpt/*', 'ahooks', '@chakra-ui/*', 'react'],
|
||||||
experimental: {
|
experimental: {
|
||||||
// 外部包独立打包
|
// 外部包独立打包
|
||||||
serverComponentsExternalPackages: ['mongoose', 'pg'],
|
serverComponentsExternalPackages: ['mongoose', 'pg'],
|
||||||
|
Reference in New Issue
Block a user