frontend 兼容
This commit is contained in:
@@ -7,8 +7,6 @@ services:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
command:
|
||||
- --default-authentication-plugin=mysql_native_password
|
||||
# ports:
|
||||
# - "3306:3306"
|
||||
volumes:
|
||||
- /data/mysql:/var/lib/mysql
|
||||
- /home/lian/share/aichat/init/create_db.sql:/docker-entrypoint-initdb.d/create_db.sql:ro
|
||||
@@ -33,20 +31,22 @@ services:
|
||||
- /home/lian/share/aichat/init/pgvector-init.sql:/docker-entrypoint-initdb.d/pgvector-init.sql:ro
|
||||
|
||||
tokenizer:
|
||||
build:
|
||||
context: ./tokenizer
|
||||
image: tokenizer:1.0.0
|
||||
container_name: tokenizer
|
||||
# 容器内端口:3002
|
||||
ports:
|
||||
- "3002:3002"
|
||||
restart: unless-stopped
|
||||
|
||||
sensitive-filter:
|
||||
build:
|
||||
context: ./keywords-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
|
||||
- /home/lian/share/aichat/ai-chat-stack/configs/sensitive.yaml:/app/config.yaml:ro
|
||||
- /home/lian/share/aichat/ai-chat-stack/configs/sensitive-dict.txt:/app/dict.txt:ro
|
||||
command:
|
||||
- --config=/app/config.yaml
|
||||
- --dict=/app/dict.txt
|
||||
@@ -55,12 +55,13 @@ services:
|
||||
restart: unless-stopped
|
||||
|
||||
keywords-filter:
|
||||
build:
|
||||
context: ./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
|
||||
- /home/lian/share/aichat/ai-chat-stack/configs/keywords.yaml:/app/config.yaml:ro
|
||||
- /home/lian/share/aichat/ai-chat-stack/configs/keywords-dict.txt:/app/dict.txt:ro
|
||||
command:
|
||||
- --config=/app/config.yaml
|
||||
- --dict=/app/dict.txt
|
||||
@@ -73,8 +74,12 @@ services:
|
||||
context: ./ai-chat-service
|
||||
image: ai-chat-service:1.0.0
|
||||
container_name: ai-chat-service
|
||||
dns:
|
||||
- 223.5.5.5
|
||||
- 119.29.29.29
|
||||
- 8.8.8.8
|
||||
volumes:
|
||||
- /home/lian/share/aichat/ai-chat-service/docker.config.yaml:/app/config.yaml:ro
|
||||
- /home/lian/share/aichat/ai-chat-stack/configs/ai-chat-service.yaml:/app/config.yaml:ro
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
ports:
|
||||
@@ -92,24 +97,28 @@ services:
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
|
||||
chatgpt-web-backend:
|
||||
ai-chat-backend:
|
||||
build:
|
||||
context: ./ai-chat-backend
|
||||
image: ai-chat-backend:1.0.0
|
||||
container_name: chatgpt-web-backend
|
||||
# 容器内端口:7080
|
||||
container_name: ai-chat-backend
|
||||
dns:
|
||||
- 223.5.5.5
|
||||
- 119.29.29.29
|
||||
- 8.8.8.8
|
||||
volumes:
|
||||
- /home/lian/share/aichat/ai-chat-backend/docker.config.yaml:/app/config.yaml:ro
|
||||
- /home/lian/share/aichat/ai-chat-stack/configs/ai-chat-backend.yaml:/app/config.yaml:ro
|
||||
depends_on:
|
||||
- ai-chat-service
|
||||
restart: unless-stopped
|
||||
|
||||
chatgpt-web-frontend:
|
||||
image: chatgpt-web-frontend:1.0.0
|
||||
container_name: chatgpt-web-frontend
|
||||
ai-chat-web:
|
||||
build:
|
||||
context: ./ai-chat-web
|
||||
image: ai-chat-web:1.0.0
|
||||
container_name: ai-chat-web
|
||||
depends_on:
|
||||
- chatgpt-web-backend
|
||||
# 容器内端口:80
|
||||
- ai-chat-backend
|
||||
ports:
|
||||
- "${FRONTEND_PORT}:80"
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user