Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: change default port to 8080 (#9714)
Danny Xuc88985955545
diff --git a/backend/bin/server/cmd/root.go b/backend/bin/server/cmd/root.goindex 32e909476d..4db11c6fa5 100644--- a/backend/bin/server/cmd/root.go+++ b/backend/bin/server/cmd/root.go@@ -109,7 +109,7 @@ func Execute() error {func init() {// In the release build, Bytebase bundles frontend and backend together and runs on a single port as a mono server.// During development, Bytebase frontend runs on a separate port.- rootCmd.PersistentFlags().IntVar(&flags.port, "port", 80, "port where Bytebase server runs. Default to 80")+ rootCmd.PersistentFlags().IntVar(&flags.port, "port", 8080, "port where Bytebase server runs. Default to 80")// When running the release build in production, most of the time, users would not expose Bytebase directly to the public.// Instead they would configure a gateway to forward the traffic to Bytebase. Users need to set --external-url to the address// exposed on that gateway accordingly.diff --git a/backend/bin/sql-service/cmd/root.go b/backend/bin/sql-service/cmd/root.goindex d0ba64c198..fdd1c7068e 100644--- a/backend/bin/sql-service/cmd/root.go+++ b/backend/bin/sql-service/cmd/root.go@@ -93,7 +93,7 @@ func Execute() error {func init() {rootCmd.PersistentFlags().StringVar(&flags.host, "host", "http://localhost", "host where Bytebase SQL service backend is accessed from, must start with http:// or https://.")- rootCmd.PersistentFlags().IntVar(&flags.port, "port", 80, "port where Bytebase SQL service backend is accessed from.")+ rootCmd.PersistentFlags().IntVar(&flags.port, "port", 8080, "port where Bytebase SQL service backend is accessed from.")rootCmd.PersistentFlags().BoolVar(&flags.debug, "debug", false, "whether to enable debug level logging")rootCmd.PersistentFlags().StringVar(&flags.workspaceID, "workspace-id", "", "the identifier for SQL service")}diff --git a/scripts/Dockerfile b/scripts/Dockerfileindex 81dee76c87..6f83f499b7 100644--- a/scripts/Dockerfile+++ b/scripts/Dockerfile@@ -96,8 +96,8 @@ COPY --from=backend /etc/ssl/certs /etc/ssl/certsENV OPENSSL_CONF /etc/ssl/-CMD ["--port", "80", "--data", "/var/opt/bytebase"]+CMD ["--port", "8080", "--data", "/var/opt/bytebase"]-HEALTHCHECK --interval=5m --timeout=60s CMD curl -f http://localhost:80/healthz || exit 1+HEALTHCHECK --interval=5m --timeout=60s CMD curl -f http://localhost:8080/healthz || exit 1ENTRYPOINT ["bytebase"]diff --git a/scripts/Dockerfile.depot b/scripts/Dockerfile.depotindex b2a8e34814..66ee42f057 100644--- a/scripts/Dockerfile.depot+++ b/scripts/Dockerfile.depot@@ -70,8 +70,8 @@ COPY --from=backend /etc/ssl/certs /etc/ssl/certsENV OPENSSL_CONF /etc/ssl/-CMD ["--port", "80", "--data", "/var/opt/bytebase"]+CMD ["--port", "8080", "--data", "/var/opt/bytebase"]-HEALTHCHECK --interval=5m --timeout=60s CMD curl -f http://localhost:80/healthz || exit 1+HEALTHCHECK --interval=5m --timeout=60s CMD curl -f http://localhost:8080/healthz || exit 1ENTRYPOINT ["bytebase"]diff --git a/scripts/Dockerfile.render-demo b/scripts/Dockerfile.render-demoindex 4e03d7654a..eb73999f05 100644--- a/scripts/Dockerfile.render-demo+++ b/scripts/Dockerfile.render-demo@@ -82,8 +82,8 @@ COPY --from=backend /etc/ssl/certs /etc/ssl/certsENV OPENSSL_CONF /etc/ssl/-CMD ["--port", "80", "--data", "/var/opt/bytebase"]+CMD ["--port", "8080", "--data", "/var/opt/bytebase"]-HEALTHCHECK --interval=5m --timeout=60s CMD curl -f http://localhost:80/healthz || exit 1+HEALTHCHECK --interval=5m --timeout=60s CMD curl -f http://localhost:8080/healthz || exit 1ENTRYPOINT ["bytebase"]diff --git a/scripts/Dockerfile.sql-service b/scripts/Dockerfile.sql-serviceindex 81cceb5efa..69cac2070e 100644--- a/scripts/Dockerfile.sql-service+++ b/scripts/Dockerfile.sql-service@@ -57,8 +57,8 @@ COPY --from=sql /etc/ssl/certs /etc/ssl/certs# Copy utility scriptsCOPY ./scripts /usr/local/bin/-CMD ["--host", "http://localhost", "--port", "80"]+CMD ["--host", "http://localhost", "--port", "8080"]-HEALTHCHECK --interval=5m --timeout=60s CMD curl -f http://localhost:80/healthz || exit 1+HEALTHCHECK --interval=5m --timeout=60s CMD curl -f http://localhost:8080/healthz || exit 1ENTRYPOINT ["sql-service"]