You can deploy multiple Porter apps alongside multiple Porter addons in a single porter.yaml file. This is particularly useful when you need to deploy related services that work together, such as a web application with its associated database or cache.
This feature is in development and is subject to change.
Usage
To enable this feature, set the PORTER_ADDON_YAML environment variable while running the apply command.
Example Configuration
Validating multi-app/addon porter.yaml
Run porter apply validate (or porter apply --validate) to check a multi-app/addon porter.yaml before deploying. Each app and addon block under apps: and addons: is split out and validated individually, and the command fails on the first invalid block and reports its index in the array.
Addon blocks that use the deprecated legacy schema are skipped during validation and print a yellow DEPRECATION WARNING. The command still succeeds for the rest of the file, but legacy addon support will be removed in a future release. Update those addons to the current schema so they’re covered by validation.