coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
34.86k stars 1.91k forks source link

[Bug]: Connect to pre-defined network via API #3906

Open seal opened 1 month ago

seal commented 1 month ago

Error Message and Logs

I want to try to enable pre-defined network via the API ( I can't seem to find it in the docs ) image

Steps to Reproduce

  1. Create an applications via the API using https://coolify.io/docs/api/operations/create-private-deploy-key-application

Example Repository URL

No response

Coolify Version

v4.0.0-beta.335

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

ubuntu 24.04.1 LTS

Additional Information

No response

seal commented 1 month ago

After looking it appears the option is defined in the openapi.yaml here: ( line 4854 ? ) image

But doesn't appear to be an option that can actually be used https://github.com/search?q=repo%3Acoollabsio%2Fcoolify%20connect_to_docker_network&type=code

image

I would submit a PR but I'm not well-versed in PHP nor a project of this size

seal commented 1 month ago

Un-related but also similar

image

What is the format I'm meant to put these in in the api ?

The docs say an array of strings, but when inputting https://MYDOMAIN:PORT ( which works when done via the UI ) I get a very peculiar 500 error: image

I'll omit the HTML as it links most of the javascript etc to my server IP, but it references this line:

https://github.com/coollabsio/coolify/blob/5d62a46a16f252e6ece4d25fe56838e99883d91b/app/Http/Controllers/Api/ApplicationsController.php#L907