Commit 525e27ce authored by Your Name's avatar Your Name

fix listen 4000

parent 9c3db14e
...@@ -2,7 +2,7 @@ version: "3.9" ...@@ -2,7 +2,7 @@ version: "3.9"
services: services:
monitorSmi: monitorSmi:
image: docker.ai.17xuexi.com/monitorapi/monitor-smi:v.0.0.1 image: docker.ai.17xuexi.com/monitorapi/monitor-smi:v.0.0.2
network_mode: host network_mode: host
volumes: volumes:
- /proc:/host/proc:ro - /proc:/host/proc:ro
......
No preview for this file type
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
"github.com/gofiber/swagger" "github.com/gofiber/swagger"
) )
func smi() { func Smi() {
// Initialize a new Fiber app // Initialize a new Fiber app
app := fiber.New() app := fiber.New()
app.Use(cors.New()) app.Use(cors.New())
...@@ -90,5 +90,5 @@ func smi() { ...@@ -90,5 +90,5 @@ func smi() {
}) })
// Start the server on port 3000 // Start the server on port 3000
log.Fatal(app.Listen(":5000")) log.Fatal(app.Listen(":4000"))
} }
...@@ -2,5 +2,5 @@ package main ...@@ -2,5 +2,5 @@ package main
func main() { func main() {
// DCGM() // DCGM()
smi() Smi()
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment