update 优化 增加snailai-server相关docker配置
This commit is contained in:
@@ -10,16 +10,18 @@ RUN mkdir -p /ruoyi/ai/logs \
|
||||
|
||||
WORKDIR /ruoyi/ai
|
||||
|
||||
ENV SERVER_PORT=9206 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
|
||||
ENV SERVER_PORT=9206 SNAIL_PORT=29206 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
|
||||
|
||||
EXPOSE ${SERVER_PORT}
|
||||
EXPOSE 18889
|
||||
# 暴露 snail ai 客户端端口
|
||||
EXPOSE ${SNAIL_PORT}
|
||||
|
||||
ADD ./target/ruoyi-ai.jar ./app.jar
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${SERVER_PORT} \
|
||||
-Dsnail-ai.port=${SNAIL_PORT} \
|
||||
#-Dskywalking.agent.service_name=ruoyi-ai \
|
||||
#-javaagent:/ruoyi/skywalking/agent/skywalking-agent.jar \
|
||||
-XX:+HeapDumpOnOutOfMemoryError -XX:+UseZGC ${JAVA_OPTS} \
|
||||
|
||||
@@ -13,7 +13,7 @@ snail-ai:
|
||||
# 认证令牌(在 Server「应用管理」页面创建时自动生成)
|
||||
token: SAI_8f1c789e35454ebdabce0b739963da9a
|
||||
# 本客户端 gRPC 端口(Server 通过此端口分发 Chat 请求)
|
||||
port: 18889
|
||||
port: 2${server.port}
|
||||
# 客户端 IP 指定,留空默认自动获取本地 IP
|
||||
host:
|
||||
# 最大并发对话数
|
||||
|
||||
@@ -249,7 +249,7 @@ services:
|
||||
# 时区上海
|
||||
TZ: Asia/Shanghai
|
||||
SERVER_PORT: 9203
|
||||
SNAIL_PORT: 19203
|
||||
SNAIL_PORT: 29203
|
||||
ports:
|
||||
- "9203:9203"
|
||||
volumes:
|
||||
@@ -300,7 +300,7 @@ services:
|
||||
TZ: Asia/Shanghai
|
||||
ports:
|
||||
- "9206:9206"
|
||||
- "18889:18889"
|
||||
- "29206:29206"
|
||||
volumes:
|
||||
# 配置文件
|
||||
- /docker/ruoyi-ai/logs/:/ruoyi/ai/logs
|
||||
|
||||
Reference in New Issue
Block a user