diff options
author | Emile <hanemile@protonmail.com> | 2019-02-26 14:16:11 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-02-26 14:16:11 +0100 |
commit | 237bf39cc75013ab1278e80a92c3647e4e958b06 (patch) | |
tree | 96ba85d7cedba231d4e3c01f43c56793bdb1ce96 | |
parent | 362d24ac12ef71242a089ae6f0587b5367b5c882 (diff) |
preparing docker-swarm deployment
-rw-r--r-- | docker-compose.yml | 2 | ||||
-rw-r--r-- | go.mod | 3 | ||||
-rw-r--r-- | go.sum | 2 | ||||
-rw-r--r-- | main.go | 4 |
4 files changed, 8 insertions, 3 deletions
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)) } |