From 237bf39cc75013ab1278e80a92c3647e4e958b06 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 26 Feb 2019 14:16:11 +0100 Subject: preparing docker-swarm deployment --- docker-compose.yml | 2 +- go.mod | 3 +++ go.sum | 2 ++ main.go | 4 ++-- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/docker-compose.yml b/docker-compose.yml index 689bae9..2e2583e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,4 +4,4 @@ services: nfw: build: . ports: - - "80:80" \ No newline at end of file + - "80:80" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..5d04b6f --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.darknebu.la/GalaxySimulator/NFW-container + +require github.com/gorilla/mux v1.7.0 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..62d09fa --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/gorilla/mux v1.7.0 h1:tOSd0UKHQd6urX6ApfOn4XdBMY6Sh1MfxV3kmaazO+U= +github.com/gorilla/mux v1.7.0/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= diff --git a/main.go b/main.go index bf1ce49..a799956 100644 --- a/main.go +++ b/main.go @@ -79,6 +79,6 @@ func main() { router.HandleFunc("/", Index).Methods("GET") router.HandleFunc("/NFW", NFW).Methods("GET") - log.Println("Starting the service on port 80") - log.Fatal(http.ListenAndServe(":80", router)) + log.Println("Starting the service on port localhost:8081") + log.Fatal(http.ListenAndServe(":8081", router)) } -- cgit 1.4.1