change 4000 to 80
This commit is contained in:
parent
d670e87908
commit
0bba3cd7d2
@ -14,7 +14,7 @@ import (
|
|||||||
_ "github.com/jackc/pgx/v4/stdlib"
|
_ "github.com/jackc/pgx/v4/stdlib"
|
||||||
)
|
)
|
||||||
|
|
||||||
const webPort = "4000"
|
const webPort = "80"
|
||||||
|
|
||||||
var counts int64
|
var counts int64
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ func (app *Config) authenticate(w http.ResponseWriter, a AuthPayload) {
|
|||||||
// call the service
|
// call the service
|
||||||
req, err := http.NewRequest(
|
req, err := http.NewRequest(
|
||||||
"POST",
|
"POST",
|
||||||
"http://authentication-service:4000/authenticate",
|
"http://authentication-service/authenticate",
|
||||||
bytes.NewBuffer(authPayload),
|
bytes.NewBuffer(authPayload),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
const webPort = "4000"
|
const webPort = "80"
|
||||||
|
|
||||||
type Config struct{}
|
type Config struct{}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ services:
|
|||||||
dockerfile: ./../broker-service/broker-service.dockerfile
|
dockerfile: ./../broker-service/broker-service.dockerfile
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "8080:4000"
|
- "8080:80"
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@ -15,7 +15,7 @@ services:
|
|||||||
context: ./../authentication-service/
|
context: ./../authentication-service/
|
||||||
dockerfile: ./../authentication-service/authentication-service.dockerfile
|
dockerfile: ./../authentication-service/authentication-service.dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8081:4000"
|
- "8081:80"
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user