app.json file at the root of your repository (or in your Project Path) and Miget reads it on every build. The format follows the Heroku app.json schema, so an existing Heroku app.json usually works as-is.
app.json is read for apps deployed through GitHub or git push, including Dockerfile builds. Apps deployed from a container registry or a Docker Compose stack don’t use it.Supported fields
Addons
Each entry inaddons becomes a regular managed addon on your app: it shows up under Addons in the dashboard, and you manage, resize, back up, and delete it like any other addon.
app.json
Plan names
You can write each addon as a Heroku plan or as a Miget shorthand:
The shorthand names aren’t valid on Heroku. Use them only if you don’t need the file to keep working there.
Sizes
Each tier maps to a fixed Miget size. The addon’s CPU, RAM, and disk count toward your plan’s resources. PostgreSQL
Valkey
Tiers above 8 Gi RAM are meant for custom plans. Contact us at hello@miget.com if you need one.
app.json, and options is ignored. To get a different size or version, pick the closest tier and change the addon afterwards in the dashboard, or add the addon from the dashboard instead of app.json.
Connection variables
Miget sets one connection URL on your app for each addon, named after the addon’sas value:
Use
as to attach two addons of the same type:
app.json
DATABASE_URL, ANALYTICS_DB_URL, and REDIS_URL.
If the variable already exists on your app, Miget keeps its value and doesn’t point it at the new addon.
PostgreSQL addons created from
app.json have Public Access turned on. Turn it off on the addon page if you only connect from apps on Miget.Redeploys and changes
- Redeploying reuses the addon Miget already created for that
asname. It doesn’t create a second one. - Changing a tier in
app.jsonresizes the existing addon on the next build - disk only ever grows, it never shrinks. - Removing an entry from
app.jsondoesn’t delete the addon. Delete it in the dashboard. - An addon you added in the dashboard is matched automatically, as long as it’s your app’s only addon of that type: your app’s one PostgreSQL addon is treated as
DATABASE, and its one Valkey addon asREDIS, the same defaultsapp.jsonentries get when they name noas. Aheroku-postgresqlentry then resizes that addon instead of creating a second one. A second addon of the same type still isn’t matched to anything - there’s no way to tell which oneapp.jsonmeans - so remove the entry fromapp.jsonif you added that one by hand.
Unsupported addons
Miget provisions only PostgreSQL and Valkey fromapp.json. Other addons (for example mongolab or papertrail), MySQL, and tiers not listed above are skipped, and the build continues without them.
