diff --git a/Dockerfile b/Dockerfile index 341eacee..1e489525 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,6 @@ COPY --from=builder /app/gatus . COPY --from=builder /app/config.yaml . COPY --from=builder /app/static static/ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt -ENV PORT 80 -EXPOSE 80 -ENTRYPOINT ["/gatus"] \ No newline at end of file +ENV PORT 8080 +EXPOSE 8080 +ENTRYPOINT ["/gatus"] diff --git a/main.go b/main.go index 08f832cb..83117127 100644 --- a/main.go +++ b/main.go @@ -2,10 +2,11 @@ package main import ( "encoding/json" - "github.com/TwinProduction/gatus/core" - "github.com/TwinProduction/gatus/watchdog" "log" "net/http" + + "github.com/TwinProduction/gatus/core" + "github.com/TwinProduction/gatus/watchdog" ) func main() { @@ -13,8 +14,8 @@ func main() { http.HandleFunc("/api/v1/results", serviceResultsHandler) http.HandleFunc("/health", healthHandler) http.Handle("/", http.FileServer(http.Dir("./static"))) - log.Println("[main][main] Listening on port 80") - log.Fatal(http.ListenAndServe(":80", nil)) + log.Println("[main][main] Listening on port 8080") + log.Fatal(http.ListenAndServe(":8080", nil)) } func serviceResultsHandler(writer http.ResponseWriter, request *http.Request) {