81 lines
2.4 KiB
YAML
81 lines
2.4 KiB
YAML
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
|
||
# 容器内端口: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:
|
||
build:
|
||
context: ./ai-chat-backend
|
||
image: ai-chat-backend:1.0.0
|
||
container_name: chatgpt-web-backend
|
||
# 容器内端口:7080
|
||
environment:
|
||
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:
|
||
image: chatgpt-web-frontend:1.0.0
|
||
container_name: chatgpt-web-frontend
|
||
depends_on:
|
||
- chatgpt-web-backend
|
||
# 容器内端口:80
|
||
ports:
|
||
- "${FRONTEND_PORT}:80"
|
||
restart: unless-stopped
|