Service Configuration
Configure build inputs, runtime settings, and deployment behavior for services
Service configuration controls how your application builds, starts, and runs. It lives in two tabs of a service:
| Tab | Sub-tab | What it holds |
|---|---|---|
| Build and Deploys | Deployments | Every deployment of the environment |
| Build and Deploys | Build Config | Repository, branch, Dockerfile, build context, port, health check and Target URL |
| Build and Deploys | Environment Variables | Key/value pairs and linked secrets. See Environment Variables |
| Build and Deploys | Workflows | The automation that builds, deploys and reviews. See Workflows |
| Resources and Domains | Resources | Replicas, CPU and memory. See Resources |
| Resources and Domains | Custom Domain | Your own domain for the service. See Custom Domains |
Who can reach the service and whether its dependencies are scanned are not build settings. They live in the Security tab. See Security.
Build Settings
Open Build and Deploys → Build Config.
- Dockerfile path - Set the path if your Dockerfile is not in the repository root (e.g.,
backend/Dockerfile). - Build context - By default, the repository root is used as the build context. If your Dockerfile is in a subdirectory and uses relative paths (e.g.,
COPY . .), enable "Use Dockerfile directory as build context" to use the Dockerfile's directory instead.
Saving build settings starts a new deployment.
See Dockerfile Requirements for examples of both approaches.
Runtime Settings
- Target URL - The first part of the URL is yours to edit. Changing it moves the service to the new URL and the old one stops working - see Moving an existing app to a new name. To use your own domain instead, see Custom Domains. While the service is not exposed, the Target URL is greyed out.
- Port - The container port your app listens on. Must match your Dockerfile's
EXPOSEdirective. - Environment variables - Key/value pairs and linked secrets, on the Environment Variables tab. See Environment Variables.
New platform names use <name>.rock8cloud.app. The name accepts lowercase
letters, digits and dashes. Names that are reserved by the platform or already
claimed cannot be used. Derived names get a short suffix when the preferred
name is unavailable. The app name pool is separate from the page pool, so a page
can use the same label on rock8cloud.page.
The public address used by a deployment follows this order: a preview address, then a verified custom domain, then the platform address. Custom domains apply to stable deployments. Pull request previews always use their generated preview address.
Moving an existing app to a new name
Apps created before flat addresses shipped are still on <service>-<org-slug>.apps.rock8.cloud. In Build and Deploys → Build Config, edit the Target URL to move to <name>.rock8cloud.app.
Moving is instant and the old address stops working right away. Update any env vars that reference it by hand - BETTER_AUTH_URL, CORS_ORIGIN, PUBLIC_URL, and OAuth callback URLs are the common ones.
Preview addresses for apps on the new namespace look like
pr-123--<name>.rock8cloud.app. Apps that still use the old platform address
keep the older pr-123-<service>-<org-slug>.apps.rock8.cloud preview shape.
Resources
Resources and Domains → Resources holds everything that draws from your plan's resource pool. Changes apply to the running pods right away, no rebuild:
- Replicas - How many copies of the service run behind the same URL. The maximum comes from your plan. Each replica consumes the service's allocation.
- CPU and memory - Resize the per-replica allocation in 0.25 vCPU / 256 MiB steps. The plan pool meters show what is still available, with a shortcut to buy more.
- Resource usage - Live CPU and memory graphs of the active deployment.
See Plans & Usage for pool sizes and add-ons.
Security
Access protection, public access and dependency scanning used to sit in build settings. They now have their own Security tab:
- Security → Access - not exposed, anyone with the link, password, members of your organization, or an OIDC provider.
- Security → Vulnerabilities - dependency scans, the block threshold, the background schedule and scan history.
See Security.
Custom Domains
Use your own domain for repository services. See Custom Domains for setup instructions. Custom domains cannot be combined with OIDC access. They work with Anyone with the link, Password and Members of this organization. See OIDC and custom domains.
Uptime Monitoring
Repository services can register uptime monitoring from the Main environment overview. Select the platform domain or a verified custom domain, then choose a path such as /health. The Uptime card shows current availability, 30-day uptime, average response time, daily incident history, and the last check time.
Pending and failed custom domains remain visible but cannot be selected. Removing the selected custom domain also removes its uptime monitor. Uptime checks cannot sign in, so a service with access protection does not report its real health. See Limitations.
Troubleshooting
| Problem | Solution |
|---|---|
| Build fails | Verify Dockerfile path and build context |
| Build fails with a vulnerability message | See Security |
| Service unreachable | Check that the port matches your app, and that the service is not set to Not exposed in Security → Access |
| Uptime data unavailable | Confirm the monitored URL and path are reachable from the public internet |
| Config not applied | Confirm the latest deployment used the new settings |
| Sign-in problems on a protected service | See Security troubleshooting |