redis缓存替换+pgvector向量替换
This commit is contained in:
@@ -1,38 +1,72 @@
|
||||
services:
|
||||
pgvector:
|
||||
image: pgvector/pgvector:pg16
|
||||
container_name: ai-chat-pgvector
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: ai_chat
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
ports:
|
||||
- "15432:5432"
|
||||
volumes:
|
||||
- /data/pgvector:/var/lib/postgresql/data
|
||||
- /home/lian/share/aichat/init/pgvector-init.sql:/docker-entrypoint-initdb.d/pgvector-init.sql:ro
|
||||
|
||||
tokenizer:
|
||||
image: tokenizer:1.0.0
|
||||
container_name: tokenizer
|
||||
# 容器内端口:3002
|
||||
ports:
|
||||
- "3002:3002"
|
||||
restart: unless-stopped
|
||||
|
||||
sensitive-filter:
|
||||
image: keywords-filter:1.0.0
|
||||
container_name: sensitive-filter
|
||||
# 容器内端口:50053
|
||||
volumes:
|
||||
- /home/lian/share/aichat/keywords-filter/dev.config.yaml:/app/config.yaml:ro
|
||||
- /home/lian/share/aichat/keywords-filter/dict.txt:/app/dict.txt:ro
|
||||
command:
|
||||
- --config=/app/config.yaml
|
||||
- --dict=/app/dict.txt
|
||||
ports:
|
||||
- "50053:50053"
|
||||
restart: unless-stopped
|
||||
|
||||
keywords-filter:
|
||||
image: keywords-filter:1.0.0
|
||||
container_name: keywords-filter
|
||||
# 容器内端口:50053
|
||||
# 容器内端口:50054
|
||||
volumes:
|
||||
- /home/lian/share/aichat/keywords-filter/dev.kw.config.yaml:/app/config.yaml:ro
|
||||
- /home/lian/share/aichat/keywords-filter/keyword-dict.txt:/app/dict.txt:ro
|
||||
command:
|
||||
- --config=/app/config.yaml
|
||||
- --dict=/app/dict.txt
|
||||
ports:
|
||||
- "50054:50054"
|
||||
restart: unless-stopped
|
||||
|
||||
chatgpt-web-backend:
|
||||
image: chatgpt-web-backend:1.0.0
|
||||
build:
|
||||
context: ./ai-chat-backend
|
||||
image: ai-chat-backend:1.0.0
|
||||
container_name: chatgpt-web-backend
|
||||
# 容器内端口:7080
|
||||
environment:
|
||||
TOKENIZER_BASE_URL: ${TOKENIZER_BASE_URL}
|
||||
command:
|
||||
- /app/server
|
||||
- --frontend-path
|
||||
- www
|
||||
- --openapi-key
|
||||
- ${MOONSHOT_API_KEY}
|
||||
- --openapi-base-url
|
||||
- ${OPENAI_BASE_URL}
|
||||
- --openai-model
|
||||
- ${OPENAI_MODEL}
|
||||
- --openai-temperature
|
||||
- "${OPENAI_TEMPERATURE}"
|
||||
- --openai-presence-penalty
|
||||
- "${OPENAI_PRESENCE_PENALTY}"
|
||||
- --openai-frequency-penalty
|
||||
- "${OPENAI_FREQUENCY_PENALTY}"
|
||||
SERVER_HOST: 0.0.0.0
|
||||
SERVER_PORT: 7080
|
||||
FRONTEND_PATH: www
|
||||
OPENAI_MODEL: ${OPENAI_MODEL}
|
||||
OPENAI_TEMPERATURE: "${OPENAI_TEMPERATURE}"
|
||||
OPENAI_PRESENCE_PENALTY: "${OPENAI_PRESENCE_PENALTY}"
|
||||
OPENAI_FREQUENCY_PENALTY: "${OPENAI_FREQUENCY_PENALTY}"
|
||||
AI_CHAT_SERVICE_ADDRESS: ${AI_CHAT_SERVICE_ADDRESS:-host.docker.internal:50055}
|
||||
AI_CHAT_SERVICE_ACCESS_TOKEN: ${AI_CHAT_SERVICE_ACCESS_TOKEN:-me256487ang1chubdpdialoud22sev1ozhoguumyqca}
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
restart: unless-stopped
|
||||
|
||||
chatgpt-web-frontend:
|
||||
|
||||
Reference in New Issue
Block a user