dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Environment/Folder/Group Features on Projects

Open raflymln opened this issue 1 year ago • 6 comments

What problem will this feature address?

So, I was migrating from railway to my own server and now I use Dokploy to manage my apps, however I notice that Dokploy doesn't support different environment switch on Projects.

For example, on Coolify, every project can define a multi environment like production, and staging. However this is not available on Dokploy, but I can easily create a new project and just put (Production) or (Staging) on the project title.

Describe the solution you'd like

Instead of reinventing the wheel and reworking from 0, I'd like to have a folder and subfolder/group system on the project.

For example, if I create Project B, I can assign Project A as the parent project, so Project B will only appear inside Project A. Here's the example from instatus.com image

You can put like parentId on here, which is nullable https://github.com/Dokploy/dokploy/blob/canary/apps/dokploy/server/db/schema/project.ts#L17

In the future, I think having Duplicates/Sync feature would be great, so we don't need to recreate apps between environment. I think duplicates would be much easier, since it's just basically a copy project button, no need to have additional UI/screen.

Describe alternatives you've considered

Additional context

This is the sync feature from Railway, however this can be more complicated image

raflymln avatar Aug 06 '24 15:08 raflymln

Hi @raflymln , I'm not sure about adding projects by groups, because as you said you actually can have any enviroment just changing the title of the application/project which will be for the same purpose a single identifier for (DEVELOP, STAGING, PRODUCTION) at the end is the same thing, so probably we couldn't add this feature for now since it looks a bit more complicated to implement but probably in a major version we could consider to implement, what I like is to duplicate applications/projects or transfer between the projects is a good idea

Siumauricio avatar Aug 07 '24 03:08 Siumauricio

Hi @Siumauricio , thanks for the reply

As i said before, basically it's just a simple grouping so it'd look much cleaner, for example if i navigate to Project A, i can find another project inside it which is Staging, or Production. And it seems i just need to put parentId which is nullable like i said before in https://github.com/Dokploy/dokploy/blob/canary/apps/dokploy/server/db/schema/project.ts#L17 and do some minor change

However if you find it difficult, i'm interested to do the PR if you're okay with it

raflymln avatar Aug 07 '24 07:08 raflymln

Folders/Groups would be nice indeed. But for anything beyond that, the points made here are relevant:

The concept of staging vs. production is very much dependent on the type of app. [...]

etc.

Boscop avatar Sep 17 '24 15:09 Boscop

I'd also like groups for projects. I have currently 18 projects on the server and it starts to get confusing. It would also be great, if there was the possibility to order the projects/apps manually.

adrianschneider94 avatar Oct 11 '24 15:10 adrianschneider94

This is a good feature to have. I will try to work on this issue next week if no one is working ✌️

Falconiere avatar Nov 24 '24 04:11 Falconiere

I'm open to PR's @Falconiere

Siumauricio avatar Nov 24 '24 17:11 Siumauricio

This would be great as it reduces prefixing and makes it harder to accidentally do something to the wrong env.

xndyz avatar May 28 '25 13:05 xndyz

Feature landed in v0.25.0🎊

Siumauricio avatar Sep 07 '25 18:09 Siumauricio