From 245863cd51ac356585c019d7f0a94793c8eae116 Mon Sep 17 00:00:00 2001 From: Misha Bragin Date: Fri, 5 Aug 2022 22:41:57 +0200 Subject: [PATCH] Update docker-compose to reflect new ports (#411) --- .github/workflows/test-docker-compose-linux.yml | 5 ++--- infrastructure_files/base.setup.env | 8 +------- infrastructure_files/configure.sh | 1 - infrastructure_files/docker-compose.yml.tmpl | 6 +++--- 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test-docker-compose-linux.yml b/.github/workflows/test-docker-compose-linux.yml index 81432c5bb..88a01e2ef 100644 --- a/.github/workflows/test-docker-compose-linux.yml +++ b/.github/workflows/test-docker-compose-linux.yml @@ -42,9 +42,8 @@ jobs: grep AUTH0_DOMAIN docker-compose.yml | grep $CI_NETBIRD_AUTH0_DOMAIN grep AUTH0_CLIENT_ID docker-compose.yml | grep $CI_NETBIRD_AUTH0_CLIENT_ID grep AUTH0_AUDIENCE docker-compose.yml | grep $CI_NETBIRD_AUTH0_AUDIENCE - grep NETBIRD_MGMT_API_ENDPOINT docker-compose.yml | grep "http://localhost:33071" - grep NETBIRD_MGMT_GRPC_API_ENDPOINT docker-compose.yml | grep "http://localhost:33073" - + grep NETBIRD_MGMT_API_ENDPOINT docker-compose.yml | grep "http://localhost:33073" + - name: run docker compose up working-directory: infrastructure_files run: | diff --git a/infrastructure_files/base.setup.env b/infrastructure_files/base.setup.env index eaadd177e..b8c48939c 100644 --- a/infrastructure_files/base.setup.env +++ b/infrastructure_files/base.setup.env @@ -3,13 +3,9 @@ # Management API # Management API port -NETBIRD_MGMT_API_PORT=33071 -# Management GRPC API port -NETBIRD_MGMT_GRPC_API_PORT=33073 +NETBIRD_MGMT_API_PORT=33073 # Management API endpoint address, used by the Dashboard NETBIRD_MGMT_API_ENDPOINT=https://$NETBIRD_DOMAIN:$NETBIRD_MGMT_API_PORT -# Management GRPC API endpoint address, used by the hosts to register -NETBIRD_MGMT_GRPC_API_ENDPOINT=https://$NETBIRD_DOMAIN:$NETBIRD_MGMT_GRPC_API_PORT # Management Certficate file path. These are generated by the Dashboard container NETBIRD_MGMT_API_CERT_FILE="/etc/letsencrypt/live/$NETBIRD_DOMAIN/fullchain.pem" # Management Certficate key file path. @@ -39,8 +35,6 @@ export NETBIRD_AUTH0_AUDIENCE export NETBIRD_LETSENCRYPT_EMAIL export NETBIRD_MGMT_API_PORT export NETBIRD_MGMT_API_ENDPOINT -export NETBIRD_MGMT_GRPC_API_PORT -export NETBIRD_MGMT_GRPC_API_ENDPOINT export NETBIRD_MGMT_API_CERT_FILE export NETBIRD_MGMT_API_CERT_KEY_FILE export TURN_USER diff --git a/infrastructure_files/configure.sh b/infrastructure_files/configure.sh index 5762cce6d..7735daf5d 100755 --- a/infrastructure_files/configure.sh +++ b/infrastructure_files/configure.sh @@ -34,7 +34,6 @@ fi if [[ $NETBIRD_DOMAIN == "localhost" || $NETBIRD_DOMAIN == "127.0.0.1" ]] then export NETBIRD_MGMT_API_ENDPOINT=http://$NETBIRD_DOMAIN:$NETBIRD_MGMT_API_PORT - export NETBIRD_MGMT_GRPC_API_ENDPOINT=http://$NETBIRD_DOMAIN:$NETBIRD_MGMT_GRPC_API_PORT unset NETBIRD_MGMT_API_CERT_FILE unset NETBIRD_MGMT_API_CERT_KEY_FILE fi diff --git a/infrastructure_files/docker-compose.yml.tmpl b/infrastructure_files/docker-compose.yml.tmpl index 797d23cd6..a2ab53c53 100644 --- a/infrastructure_files/docker-compose.yml.tmpl +++ b/infrastructure_files/docker-compose.yml.tmpl @@ -12,7 +12,7 @@ services: - AUTH0_CLIENT_ID=$NETBIRD_AUTH0_CLIENT_ID - AUTH0_AUDIENCE=$NETBIRD_AUTH0_AUDIENCE - NETBIRD_MGMT_API_ENDPOINT=$NETBIRD_MGMT_API_ENDPOINT - - NETBIRD_MGMT_GRPC_API_ENDPOINT=$NETBIRD_MGMT_GRPC_API_ENDPOINT + - NETBIRD_MGMT_GRPC_API_ENDPOINT=$NETBIRD_MGMT_API_ENDPOINT - NGINX_SSL_PORT=443 - LETSENCRYPT_DOMAIN=$NETBIRD_DOMAIN - LETSENCRYPT_EMAIL=$NETBIRD_LETSENCRYPT_EMAIL @@ -40,11 +40,11 @@ services: - $LETSENCRYPT_VOLUMENAME:/etc/letsencrypt:ro - ./management.json:/etc/netbird/management.json ports: - - $NETBIRD_MGMT_GRPC_API_PORT:33073 #gRPC port - - $NETBIRD_MGMT_API_PORT:33071 #API port + - $NETBIRD_MGMT_API_PORT:443 #API port # # port and command for Let's Encrypt validation without dashboard container # - 443:443 # command: ["--letsencrypt-domain", "$NETBIRD_DOMAIN", "--log-file", "console"] + command: ["--port", "443", "--log-file", "console"] # Coturn coturn: image: coturn/coturn