Portainer's Application Deployment Form is by far the easiest and quickest way to get your application up and running. You don’t need to know how to write complex deployment code for Docker or Kubernetes, nor any need to know how best to deploy your application atop any orchestrator. You simply need to be able to answer some natural language questions about your application and Portainer will determine the best way to deploy it.
The Application Deployment Form is pre-configured with all the rules the underlying platforms must adhere to, and the constraints application deployments must operate within, which prevents users from requesting a deployment configuration that won’t work. If the deployment button is available, your deployment will succeed, period.
Code-based deployment is for more experienced users who want to exert a tighter degree of control over the deployment of their application. In this model, you simply provide Portainer with a copy of the deployment manifest (Docker compose or Kubernetes manifest), and Portainer will handle the deployment of the application to the selected endpoint. Portainer can also be configured to connect to a Git repo, from which it can deploy the application on demand.