From dd6a6cdf9daeee1bd6db648ad783578a4127b38d Mon Sep 17 00:00:00 2001 From: Ann SHIH Date: Wed, 6 Mar 2024 17:04:05 +0800 Subject: [PATCH] update envs --- Taipei-City-Dashboard-BE/internal/app/app.go | 2 +- docker/docker-compose.yaml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Taipei-City-Dashboard-BE/internal/app/app.go b/Taipei-City-Dashboard-BE/internal/app/app.go index f73799f5..7e307bcc 100644 --- a/Taipei-City-Dashboard-BE/internal/app/app.go +++ b/Taipei-City-Dashboard-BE/internal/app/app.go @@ -34,7 +34,7 @@ func StartApplication() { routes.ConfigureRoutes() // 5. Configure http server - addr := os.Getenv("DOMAIN") + ":" + os.Getenv("PORT") + addr := os.Getenv("DOMAIN") + ":8080" err := endless.ListenAndServe(addr, routes.Router) if err != nil { diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 63428a6f..9d47b22d 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -40,13 +40,9 @@ services: environment: GIN_MODE: ${GIN_MODE} DOMAIN: ${DOMAIN} - PORT: ${PORT:-8888} JWT_SECRET: ${JWT_SECRET} ISSO_CLIENT_ID: ${ISSO_CLIENT_ID} ISSO_CLIENT_SECRET: ${ISSO_CLIENT_SECRET} - DASHBOARD_DEFAULT_USERNAME: ${DASHBOARD_DEFAULT_USERNAME:-default} - DASHBOARD_DEFAULT_Email: ${DASHBOARD_DEFAULT_Email:-default@gov.taipei} - DASHBOARD_DEFAULT_PASSWORD: ${DASHBOARD_DEFAULT_PASSWORD:-password} DB_DASHBOARD_HOST: ${DB_DASHBOARD_HOST:-postgres-data} DB_DASHBOARD_USER: ${DB_DASHBOARD_USER} DB_DASHBOARD_PASSWORD: ${DB_DASHBOARD_PASSWORD}