fix: 改用 host 网络模式解决数据库连接超时
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user