diff --git a/docker/.env b/docker/.env index e2c588a..253ab12 100644 --- a/docker/.env +++ b/docker/.env @@ -157,7 +157,8 @@ UV_CUBE_PROXY_INSTANCE_ID= UV_CUBE_UI_NEXTAUTH_SECRET="cZAcFIdjxebC1XDULvfoXs_sO7ufCTRo3hW2lXtMoCvcSKkTyP" UV_CUBE_UI_NAME="Cube AI" # change IP address to your local IP address -UV_CUBE_UI_BASE_URL=http://109.92.195.153:6193 -UV_CUBE_NEXTAUTH_URL=http://109.92.195.153:6193/api/auth -UV_CUBE_PUBLIC_BASE_URL=http://109.92.195.153:6193 +UI_PORT=6193 +UV_CUBE_UI_BASE_URL=http://109.92.195.153:${UI_PORT} +UV_CUBE_NEXTAUTH_URL=http://109.92.195.153:${UI_PORT} +UV_CUBE_PUBLIC_BASE_URL=http://109.92.195.153:${UI_PORT} UV_CUBE_PUBLIC_UI_TYPE=cube-ai diff --git a/docker/magistrala-compose.yaml b/docker/magistrala-compose.yaml index 925c6ec..069d2ee 100644 --- a/docker/magistrala-compose.yaml +++ b/docker/magistrala-compose.yaml @@ -327,10 +327,11 @@ services: - users - invitations ports: - - 3001:3000 + - ${UI_PORT}:${UI_PORT} networks: - cube-network environment: + PORT: ${UI_PORT} NEXTAUTH_SECRET: ${UV_CUBE_UI_NEXTAUTH_SECRET} MG_DOMAINS_URL: ${MG_DOMAINS_URL} MG_USERS_URL: ${MG_USERS_URL}