From 911117f240da401636c4a1a830404d2668949765 Mon Sep 17 00:00:00 2001 From: zs Date: Mon, 2 Mar 2026 22:31:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8E=E5=8F=B0=E6=89=93=E5=8C=85?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/.env.example | 2 +- server/Dockerfile | 2 +- server/docker-compose.yml | 13 ++----------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/server/.env.example b/server/.env.example index d1f270c..479eb51 100644 --- a/server/.env.example +++ b/server/.env.example @@ -38,7 +38,7 @@ GEMINI_AVAILABLE_MODELS=gemini-2.5-flash,gemini-2.5-pro JWT_SECRET=your-random-32-char-secret-key-here # ---- 服务器 ---- -SERVER_PORT=8080 +SERVER_PORT=8009 LOG_LEVEL=info # ---- CORS ---- diff --git a/server/Dockerfile b/server/Dockerfile index 6729070..e3688e0 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -13,6 +13,6 @@ RUN chmod +x server_bin # 拷贝数据库迁移文件 (服务启动时自动执行) COPY migrations ./migrations -EXPOSE 8080 +EXPOSE 8009 CMD ["./server_bin"] diff --git a/server/docker-compose.yml b/server/docker-compose.yml index 87e84a9..dcc91a5 100644 --- a/server/docker-compose.yml +++ b/server/docker-compose.yml @@ -1,22 +1,13 @@ -version: '3.8' - services: insight-reply-server: build: . container_name: insight-reply-server restart: always - ports: - - "8009:8080" + network_mode: host env_file: - .env environment: - LOG_FILE_PATH=/app/logs/InsightReply.log + - SERVER_PORT=8009 volumes: - # Map the host's /root/logs to the container's /app/logs directory - /root/logs:/app/logs - networks: - - insight_network - -networks: - insight_network: - driver: bridge