fix: 修复错误
This commit is contained in:
43
docs/docker-compose-environment-aliyun2.yml
Normal file
43
docs/docker-compose-environment-aliyun2.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
# docker-compose -f docker-compose-environment-aliyun.yml up -d
|
||||
version: '3'
|
||||
services:
|
||||
# 对话模型
|
||||
# ollama pull deepseek-r1:1.5b
|
||||
# 运行模型
|
||||
# ollama run deepseek-r1:1.5b
|
||||
# 联网模型
|
||||
# ollama pull nomic-embed-text
|
||||
ollama:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/xfg-studio/ollama:0.5.10
|
||||
container_name: ollama
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "11434:11434"
|
||||
vector_db:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/xfg-studio/pgvector:v0.5.0
|
||||
container_name: vector_db
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DB=ai-rag-knowledge
|
||||
- PGPASSWORD=postgres
|
||||
volumes:
|
||||
- ./pgvector/sql/init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
logging:
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
ports:
|
||||
- '15432:5432'
|
||||
healthcheck:
|
||||
test: "pg_isready -U postgres -d ai-rag-knowledge"
|
||||
interval: 2s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
networks:
|
||||
- my-network
|
||||
|
||||
networks:
|
||||
my-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user