How to deploy Docker container using .do/deploy.template.yaml

Posted November 5, 2021 110 views
DigitalOcean 1-Click Apps Marketplace

I believe your documentation on the different between app.yaml and .do/deploy.template.yaml is lacking.

I believe your page explaining how to add the deploy button, is totally confusing it show examples for the deploy.template.yaml file, but links to the documentation for the app.yaml

Why are your customers having to explain this to you?

Okay, can you explain if it is possible to launch a docker container,
using this file somehow: .do/deploy.template.yaml

Thank you

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

👋🏼 @CameronSeattle

I realize this is not very clear. .do/app.yaml is an unofficial path commonly used to store app specs in git repos, however, it is not used by App Platform at all.

deploy.template.yaml follows the exact same syntax as a regular App Spec, except it is nested under a spec: key. As an example, here is a deploy button template for a Dockerfile service:

  name: sample-dockerfile
  - name: dockerfile-service
    dockerfile_path: Dockerfile
      branch: main
  • Thank you so much for your answer! 😊

    If I use that deploy template, then it rebuilds the whole docker instance from scratch.
    If I recall correctly my one click deploys this way take about 10 to 12 minutes.
    And they start including things I don’t need like Heroku tools for Go.

    Is it possible to build a one-click App deploy around a DockerHub image and not build from a Dockerfile?