Exposing Multiple Ports
Learn how to easily configure multi-port exposure for your applications on ClawCloud Run, supporting multi-protocol needs, diverse functionalities, and monitoring requirements—all while gaining dedica
In complex application environments, it’s common to expose multiple ports for different use cases. Here are typical scenarios:
Multi-Protocol Support: Expose ports like
80
(HTTP) and443
(HTTPS) to handle both protocols.Multi-Functional Services: Separate ports for distinct services, e.g., a
web
service on port8080
and anadmin
interface on port8081
.Backward Compatibility: Maintain legacy and modern interfaces by exposing ports for both (e.g.,
3000
for legacy APIs and4000
for newer versions).Monitoring & Metrics: Expose a dedicated port (e.g.,
9090
) for Prometheus to scrape metrics via/metrics
endpoints.GRPC + RESTful Coexistence: Serve GRPC on port
50051
and RESTful APIs on port8080
simultaneously.
Configuring Multi-Port Exposure in ClawCloud Run
During Deployment via APP Launchpad:
Navigate to Network Configuration in the deployment workflow.
Click Add Port to define additional ports.
Specify the port number, protocol (HTTP/HTTPS/TCP).
Automatic Subdomain Assignment:
ClawCloud Run assigns a unique subdomain (e.g.,
metrics.your-app.claw.run
) for each port, simplifying access management.
Post-Deployment Adjustments:
Modify exposed ports anytime by updating your application’s configuration in the APP Launchpad.

Last updated
Was this helpful?