louislam / dockge

A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager
https://dockge.kuma.pet
MIT License
13.13k stars 375 forks source link

GitOps with multiple stacks #670

Open Felioh opened 5 days ago

Felioh commented 5 days ago

⚠️⚠️⚠️ Since we do not accept all types of pull requests and do not want to waste your time. Please be sure that you have read pull request rules: https://github.com/louislam/dockge/blob/master/CONTRIBUTING.md

Tick the checkbox if you understand [x]:

Description

This is an extension of the PR #471. As that PR has not been merged yet, I do not expect this to be merged, but I still want to give you a chance to see this.

The main addition to the previous PR is that multiple stacks in one Repository can now be used and are correctly shown in Dockge. This is not perfect and there are a lot of improvements to be made. However, this works for me. If anyone finds any bugs I will happily fix them. :)

How does this work?

With this, every folder inside the StacksDir is scanned up to a maximum depth of 3 (This should probably be a setting) for a compose.yml. The Stack names are now not just the parent folder, but everything up until the StacksDir. This means that the name attribute cannot really be used (but before it couldn't either).

Also, I rebased onto the current master.

Type of change

Please delete any options that are not relevant.

Checklist

Screenshots (if any)

Screenshot 2024-11-17 124412

Please do not use any external image service. Instead, just paste in or drag and drop the image here, and it will be uploaded automatically.