diff --git a/.env.example b/.env.example index 1f222c5..d8bbfea 100644 --- a/.env.example +++ b/.env.example @@ -2,6 +2,7 @@ PROJECT_ROOT=/home/ivan/xuan/beaver_project BEAVER_NET=beaver-instance-edge +BEAVER_PROXY_CONTAINER_NAME=beaver-router-proxy BEAVER_DEPLOY_TOKEN=change-me BEAVER_AUTHZ_INTERNAL_TOKEN=change-me diff --git a/README.md b/README.md index cf5c580..db42c90 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ Browser ```bash export PROJECT_ROOT=/home/ivan/xuan/beaver_project export BEAVER_NET=beaver-instance-edge +export BEAVER_PROXY_CONTAINER_NAME=beaver-router-proxy export BEAVER_DEPLOY_TOKEN="$(openssl rand -hex 32)" export BEAVER_AUTHZ_INTERNAL_TOKEN="$(openssl rand -hex 32)" diff --git a/部署指南.md b/部署指南.md index 4556300..21ccc40 100644 --- a/部署指南.md +++ b/部署指南.md @@ -71,6 +71,7 @@ alice.127.0.0.1.nip.io -> 127.0.0.1 ```bash export PROJECT_ROOT=/home/ivan/xuan/beaver_project export BEAVER_NET=beaver-instance-edge +export BEAVER_PROXY_CONTAINER_NAME=beaver-router-proxy export BEAVER_DEPLOY_TOKEN="$(openssl rand -hex 32)" export BEAVER_AUTHZ_INTERNAL_TOKEN="$(openssl rand -hex 32)" @@ -174,6 +175,7 @@ beaver-instance-edge cd "$PROJECT_ROOT" PROXY_NETWORK_NAME="$BEAVER_NET" \ +PROXY_CONTAINER_NAME="$BEAVER_PROXY_CONTAINER_NAME" \ PROXY_HTTP_PORT=8088 \ ./router-proxy/start-proxy.sh --replace ``` @@ -244,6 +246,8 @@ docker run -d \ -v "$PROJECT_ROOT/router-proxy:$PROJECT_ROOT/router-proxy" \ -e APP_INSTANCE_DIR="$PROJECT_ROOT/app-instance" \ -e ROUTER_PROXY_DIR="$PROJECT_ROOT/router-proxy" \ + -e PROXY_CONTAINER_NAME="$BEAVER_PROXY_CONTAINER_NAME" \ + -e PROXY_NETWORK_NAME="$BEAVER_NET" \ -e DEPLOY_CONTROL_API_TOKEN="$BEAVER_DEPLOY_TOKEN" \ -e APP_INSTANCE_IMAGE="beaver/app-instance:latest" \ -e APP_INSTANCE_NETWORK_NAME="$BEAVER_NET" \