Configuration as Code
Getting Started with porter.yaml
Writing a porter.yaml
for your app is a great way to maintain a single source of truth on how your app should be built and deployed. Though this file is not required, it can reduce the time it takes to get started with a Porter app.
Once you start creating your app in Porter and select a Github repository, Porter will automatically read your porter.yaml
to prepopulate settings for your app’s services.
Example porter.yaml
The following is an example of a v2 porter.yaml
file, which is the latest version of the spec. This example covers many of the available fields, but not all of them. For a full list of configurable options, see below.