Report this

What is the reason for this report?

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

Posted on November 5, 2021

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 https://docs.digitalocean.com/products/app-platform/how-to/add-deploy-do-button/

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

👋🏼 @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:

spec:
  name: sample-dockerfile
  services:
  - name: dockerfile-service
    dockerfile_path: Dockerfile
    git:
      branch: main
      repo_clone_url: https://github.com/digitalocean/sample-dockerfile.git

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.