brimble.toml to describe your Brimble resources alongside your application code. When you deploy a commit, Brimble reads the file from that commit, compares it with the current settings, and shows the resulting plan under your project’s Configuration → Config as code section.
Get started
- Open your project in the dashboard and go to Configuration → Config as code.
- Select Generate brimble.toml to get a file based on the project’s current settings. The generated file does not contain secret values.
- Add the file to your repository. Put it in the project’s root directory if you set one, or at the repository root.
- Commit and push it. Check Config as code for the plan and approve any changes that need your review.
Write a service configuration
Each entry underservices has a name. Use your existing project’s name when you want to configure that project. This example configures a web service named my-app:
build.install if you want Brimble to keep the current install command. Paths such as root, build.output, and build.dockerfile must stay inside the repository.
Use either
scale.replicas or autoscaling settings for a service. You cannot combine them. See Scaling for how scaling works.
Keep secrets out of the file
Values inservices.<name>.env are part of your repository. For credentials, add the variable in the project’s Environment tab and declare its name as required:
Add databases and buckets
You can describe other resources in the same file. This example updates a database namedapp-db and a bucket named uploads:
engine and version using values available in the dashboard. Check the plan before approving a new resource, since resource creation can affect your bill. An existing resource that is absent from the file is shown separately in the plan; leaving it out does not delete it.
Set environment-specific values
Top-level settings apply as the base. Add anenvironments table to override settings for a named environment. The names must match your environment slugs.
inherit_from to inherit another named environment or production; inheritance cycles are invalid. Preview overrides are limited to service build, deploy, and env settings.
Review and apply changes
After a push, Brimble compares the file with the current settings. Routine changes apply automatically. New resources and changes that require confirmation pause the deployment until you approve them in Configuration → Config as code. You can reject the plan there instead. The plan explains any blocked change. For example, a setting may be unavailable on your plan, a required secret may be missing, or a resource property may be create-only. Fix the file or the project setting, then push a new commit. Invalid TOML and unsupported fields produce validation errors with a line number.Storage sizes use values such as
512mb, 10gb, or 1tb. Durations use s, m, h, or d, for example 30s or 7d. TOML strings need quotes, while numbers and booleans do not.