feat 端口修改

This commit is contained in:
2026-01-16 22:09:42 +08:00
parent 167c5dae35
commit 584319e5ec
4 changed files with 23 additions and 8 deletions

View File

@@ -8,6 +8,13 @@ log:
maxBackups: 100 maxBackups: 100
maxAge: 7 maxAge: 7
metric:
prometheus:
address: "0.0.0.0"
port: 18601
jaeger:
endpoint: "47.108.184.184:4317"
db: db:
etcd: etcd:
endpoints: [ "10.0.40.9:2379" ] endpoints: [ "10.0.40.9:2379" ]
@@ -27,5 +34,5 @@ db:
serve: serve:
grpc: grpc:
address: "10.0.40.199" address: "10.0.40.199"
port: 8603 port: 18600
ttl: 20 ttl: 20

View File

@@ -7,6 +7,7 @@ const path = "./config"
type Config struct { type Config struct {
App *config.AppConfig `yaml:"app"` App *config.AppConfig `yaml:"app"`
Log *config.LogConfig `yaml:"log"` Log *config.LogConfig `yaml:"log"`
Metric *config.MetricConfig `yaml:"metric"`
DB *config.DBConfig `yaml:"db"` DB *config.DBConfig `yaml:"db"`
Serve *config.ServeConfig `yaml:"serve"` Serve *config.ServeConfig `yaml:"serve"`
} }

View File

@@ -8,6 +8,13 @@ log:
maxBackups: 100 maxBackups: 100
maxAge: 7 maxAge: 7
metric:
prometheus:
address: "0.0.0.0"
port: 18601
jaeger:
endpoint: "172.18.28.0:4317"
db: db:
etcd: etcd:
endpoints: [ "172.18.28.0:2379" ] endpoints: [ "172.18.28.0:2379" ]
@@ -27,5 +34,5 @@ db:
serve: serve:
grpc: grpc:
address: "172.18.28.0" address: "172.18.28.0"
port: 8603 port: 18600
ttl: 20 ttl: 20

4
deploy/Jenkinsfile vendored
View File

@@ -51,7 +51,7 @@ pipeline {
stage('Build Go Binary') { stage('Build Go Binary') {
agent { agent {
docker { docker {
image 'golang:1.23.1-alpine' image 'golang:1.24.0-alpine'
reuseNode true reuseNode true
args '-u root:root -v $GO_MOD_CACHE_DIR:/go/pkg/mod -v $GO_BUILD_CACHE_DIR:/root/.cache/go-build' args '-u root:root -v $GO_MOD_CACHE_DIR:/go/pkg/mod -v $GO_BUILD_CACHE_DIR:/root/.cache/go-build'
} }
@@ -109,7 +109,7 @@ pipeline {
docker run -d \\ docker run -d \\
--name ${env.APP_NAME} \\ --name ${env.APP_NAME} \\
--restart unless-stopped \\ --restart unless-stopped \\
-p 8603:8603 \\ -p 18600-18601:18600-18601 \\
--env XH_G_ENV=prod \\ --env XH_G_ENV=prod \\
-v /root/service/logs/qgdzs_log/:/app/logs \\ -v /root/service/logs/qgdzs_log/:/app/logs \\
${env.IMAGE_TAG} ${env.IMAGE_TAG}