diff --git a/auto/deps_pro-ha.yml b/auto/deps_pro-ha.yml index efc06f4..633d30d 100644 --- a/auto/deps_pro-ha.yml +++ b/auto/deps_pro-ha.yml @@ -62,4 +62,4 @@ services: build: context: ./webhook-server ports: - - "9003:8080" + - "9003:9003" diff --git a/auto/deps_pro.yml b/auto/deps_pro.yml index efc06f4..633d30d 100644 --- a/auto/deps_pro.yml +++ b/auto/deps_pro.yml @@ -62,4 +62,4 @@ services: build: context: ./webhook-server ports: - - "9003:8080" + - "9003:9003" diff --git a/auto/webhook-server/Dockerfile b/auto/webhook-server/Dockerfile index 73543fc..3172019 100644 --- a/auto/webhook-server/Dockerfile +++ b/auto/webhook-server/Dockerfile @@ -10,8 +10,8 @@ COPY . . # Build the Go app RUN go build -o webhook . -# Expose port 8080 to the outside world -EXPOSE 8080 +# Expose port 9003 to the outside world +EXPOSE 9003 # Command to run the executable CMD ["./webhook"] diff --git a/auto/webhook-server/README.md b/auto/webhook-server/README.md index bd6c947..2eacfba 100644 --- a/auto/webhook-server/README.md +++ b/auto/webhook-server/README.md @@ -12,6 +12,7 @@ A simple Go application to receive and store webhook events, and retrieve them b ## Usage ### Start webhook server + `go run main.go` runs the webhook server listening on port `8080`. ### Sending a Webhook Event diff --git a/auto/webhook-server/main.go b/auto/webhook-server/main.go index d9b5658..bd90e2c 100644 --- a/auto/webhook-server/main.go +++ b/auto/webhook-server/main.go @@ -75,8 +75,8 @@ func main() { http.HandleFunc("/webhook/", webhookHandler) http.HandleFunc("/requests/", requestsHandler) - fmt.Println("Starting server on :8080") - if err := http.ListenAndServe(":8080", nil); err != nil { + fmt.Println("Starting server on :9003") + if err := http.ListenAndServe(":9003", nil); err != nil { log.Fatalf("Could not start server: %s\n", err) } }