fix: 改用 host 网络模式解决数据库连接超时
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
kkfluous
2026-03-26 14:26:05 +08:00
parent d4582d4c97
commit b82a59ab8f

View File

@@ -1,21 +1,16 @@
version: '3.8'
networks:
lingniu_beta_network:
external: true
services:
ln-bi:
image: harbor.lnh2e.com/lingniu-v1/ln-bi:main-1.0.0
ports:
- "8111:3001"
network_mode: host
environment:
- DB_HOST=192.168.130.111
- DB_PORT=3306
- DB_USER=root
- DB_PASSWORD=lingniu#2024
- DB_NAME=lingniu_prod3
- SERVER_PORT=3001
- SERVER_PORT=8111
deploy:
replicas: 1
restart_policy:
@@ -25,5 +20,3 @@ services:
labels:
- portainer.hide=false
- project=lingniu
networks:
- lingniu_beta_network