Services
Host scalable, managed applications and web services.
The Services feature allows you to seamlessly deploy web applications, APIs, and background workers without managing raw infrastructure like Virtual Machines.
Overview
A Service is a fully managed deployment of your code or container. You don't have to worry about provisioning servers, configuring the operating system, or setting up load balancing. Just provide your application parameters, and the platform handles the rest.
Deploying a Service
To deploy a new Service:
- Go to the Services tab in the dashboard.
- Click "New Service".
- Source Code & Image: Provide the container image or link your repository to build and deploy your application.
- Environment: Select the runtime environment or framework.
- Environment Variables: Add necessary configuration values, such as API keys or database connection strings.
- Compute Plan: Choose the size of the instance depending on your application's expected load.
- Click Deploy. Your service will be provisioned, built, and assigned a live URL instantly.
Auto-Scaling and High Availability
Services are designed for scale. You can configure rules to automatically increase or decrease the number of instances running your application based on traffic or CPU utilization parameters.
This ensures you can handle sudden spikes in traffic without manual intervention, while saving costs during periods of low usage.
Custom Domains
By default, your service will be assigned a .app or similar generated
subdomain. You can map your own custom domains to the service by configuring
DNS records in your domain registrar and adding the domain in the Service
settings.