feat: 后台打包测试部署
All checks were successful
Backend Deploy (Go + Docker) / deploy (push) Successful in 1m29s
All checks were successful
Backend Deploy (Go + Docker) / deploy (push) Successful in 1m29s
This commit is contained in:
@@ -38,7 +38,7 @@ GEMINI_AVAILABLE_MODELS=gemini-2.5-flash,gemini-2.5-pro
|
|||||||
JWT_SECRET=your-random-32-char-secret-key-here
|
JWT_SECRET=your-random-32-char-secret-key-here
|
||||||
|
|
||||||
# ---- 服务器 ----
|
# ---- 服务器 ----
|
||||||
SERVER_PORT=8080
|
SERVER_PORT=8009
|
||||||
LOG_LEVEL=info
|
LOG_LEVEL=info
|
||||||
|
|
||||||
# ---- CORS ----
|
# ---- CORS ----
|
||||||
|
|||||||
@@ -13,6 +13,6 @@ RUN chmod +x server_bin
|
|||||||
# 拷贝数据库迁移文件 (服务启动时自动执行)
|
# 拷贝数据库迁移文件 (服务启动时自动执行)
|
||||||
COPY migrations ./migrations
|
COPY migrations ./migrations
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8009
|
||||||
|
|
||||||
CMD ["./server_bin"]
|
CMD ["./server_bin"]
|
||||||
|
|||||||
@@ -1,22 +1,13 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
insight-reply-server:
|
insight-reply-server:
|
||||||
build: .
|
build: .
|
||||||
container_name: insight-reply-server
|
container_name: insight-reply-server
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
network_mode: host
|
||||||
- "8009:8080"
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- LOG_FILE_PATH=/app/logs/InsightReply.log
|
- LOG_FILE_PATH=/app/logs/InsightReply.log
|
||||||
|
- SERVER_PORT=8009
|
||||||
volumes:
|
volumes:
|
||||||
# Map the host's /root/logs to the container's /app/logs directory
|
|
||||||
- /root/logs:/app/logs
|
- /root/logs:/app/logs
|
||||||
networks:
|
|
||||||
- insight_network
|
|
||||||
|
|
||||||
networks:
|
|
||||||
insight_network:
|
|
||||||
driver: bridge
|
|
||||||
|
|||||||
Reference in New Issue
Block a user