LogoLogo
Run to Console
  • ClawCloud Run
    • Document
    • Getting Started
      • Create a DevBox
      • Deploy Database
      • Deploy from Docker
      • Deploy from Template
    • Guide
      • App Launchpad
        • Install Application
        • Update Application
        • Custom Domain
        • Exposing Multiple Ports
        • Environment Variables
        • Configuration Files
        • Auto Scaling
        • Persistent Storage
        • Custom Domain Certificates
      • Devbox
        • Devbox List
        • Devbox Details
        • Devbox Release
      • Database
        • PostgreSQL
        • MySQL
        • Redis
        • MongoDB
        • Kafka
        • Milvus
      • Object Storage
      • Advanced
        • Workspace
        • Terminal
        • Cron Job
        • KubeConfig
    • Pricing
    • Billing & Usage
    • Migration
      • Migrate from Docker
      • Migrate from Docker Compose
    • Architecture
      • Devbox Architecture
      • System Architecture
      • User Architecture
    • Legal
      • Privacy Policy
      • Terms and Conditions
      • Data Processing Addendum
    • Changelog
    • Best Practice
    • FAQ
    • More
      • Abuse Complaint
    • Help
  • Blog
Powered by GitBook

Copyright @ 2023-Present CLAWCLOUD. All Rights Reserved.

On this page

Was this helpful?

Export as PDF
  1. ClawCloud Run
  2. Guide
  3. App Launchpad

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

PreviousCustom DomainNextEnvironment Variables

Last updated 2 months ago

Was this helpful?

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) and 443 (HTTPS) to handle both protocols.

  • Multi-Functional Services: Separate ports for distinct services, e.g., a web service on port 8080 and an admin interface on port 8081.

  • Backward Compatibility: Maintain legacy and modern interfaces by exposing ports for both (e.g., 3000 for legacy APIs and 4000 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 port 8080 simultaneously.


Configuring Multi-Port Exposure in ClawCloud Run

  1. 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).

  2. Automatic Subdomain Assignment:

    • ClawCloud Run assigns a unique subdomain (e.g., metrics.your-app.claw.run) for each port, simplifying access management.

  3. Post-Deployment Adjustments:

    • Modify exposed ports anytime by updating your application’s configuration in the APP Launchpad.