CTRLctrl docs

ctrl.json

Coming soon. A ctrl.json file in your repository, so an app's settings can live next to its code, isn't available yet. CTRL doesn't read any config file from your repository today.

Until it ships, every setting is made in the dashboard, the API or the CLI:

Setting Where you set it today
Name, repository and branch When you create the app, in the dashboard or POST /v1/apps (name, repo, branch)
Container image, instead of a repository POST /v1/apps with image_ref, or ctrl deploy --image
Region When you create the app (region)
Port your app listens on When you create the app (exposed_port)
CPU, memory and disk When you create the app (vcpu_count or cpu_millis, mem_size_mb, disk_size_mb), and later with PATCH /v1/apps/:app_id/resources
High availability (two copies on two nodes) PATCH /v1/apps/:app_id/ha or the app's HA switch
Managed database When you create the app (add_database), or POST /v1/apps/:app_id/database
Environment variables The dashboard, ctrl env set or PUT /v1/apps/:app_id/env. See Environment variables.
Custom domains The dashboard or /v1/apps/:app_id/domains. See Custom domains.

How your app is built is worked out from the repository itself: its Dockerfile if it has one, otherwise a build for the stack CTRL detects, otherwise Nixpacks.