Report this

What is the reason for this report?

[BUG]: Deploy to DigitalOcean - app-spec - databases are ignored

Posted on December 23, 2024

Hi all,

when I try to deploy from one-click deploy button to DO, Currently it is only working for “Services”.

Check for example: https://github.com/Blair2004/NexoPOS/blob/d5b30b0cc62a7436b52f4c078ca4072ffc8e8384/.do/deploy.template.yaml#L5

But “databases” are ignored.

You can check it basically from here https://github.com/Blair2004/NexoPOS/

Official docs: https://docs.digitalocean.com/products/app-platform/reference/app-spec/



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.

This one can be simple reproduced by:

spec:
  name: deploystack
  region: nyc
  databases:
    - name: db
      engine: MYSQL
      production: true
      cluster_name: linkace
      version: "8"

Hey!

One issue here might be that the cluster name should be at least 3 letters, and in your yaml file you’ve set it to ns:

However, I just tested this with a longer name and it still seems to be an issue.

I will report this internally!

In the meantime, you could try first provisioning the cluster separately.

- Bobby

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.