service 修改 Redis 存储 KV
This commit is contained in:
@@ -1,35 +1,4 @@
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.0
|
||||
container_name: ai-chat-mysql
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
command:
|
||||
- --default-authentication-plugin=mysql_native_password
|
||||
volumes:
|
||||
- /data/mysql:/var/lib/mysql
|
||||
- /home/lian/share/aichat/init/create_db.sql:/docker-entrypoint-initdb.d/create_db.sql:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
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:
|
||||
build:
|
||||
context: ../tokenizer
|
||||
@@ -83,11 +52,9 @@ services:
|
||||
ports:
|
||||
- "50055:50055"
|
||||
depends_on:
|
||||
- mysql
|
||||
- tokenizer
|
||||
- sensitive-filter
|
||||
- keywords-filter
|
||||
- pgvector
|
||||
healthcheck:
|
||||
test: ["CMD", "grpc_health_probe", "-addr=:50055"]
|
||||
interval: 15s
|
||||
|
||||
Reference in New Issue
Block a user