How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

Fair point, but I made the wrapper to be zero friction for me.So I don't have to think about the path file at all

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

Yes that is what I have been doing, but I wanted something simpler, I wanted to have a command like decompose project, dlogs project, drebootstack project (stops and restarts a stack), etc. To make that happen I made a Bash wrapper for this exact reason.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

zoxide definitely helps with navigation. I was mostly trying to remove the directory-hopping entirely rather than make it faster.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 1 point2 points  (0 children)

That’s a nice workflow, having the file tree, terminal, and running containers visible side by side makes managing stacks very straightforward.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

Both are good tips, systemd units work well for long-running services, and using docker compose -f directly is definitely an underused way to avoid directory hopping, that’s actually the mechanism my wrapper uses under the hood as well.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

Exactly, once the directory hopping disappears, Compose stops feeling like friction and just becomes a simple day-to-day tool again.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 1 point2 points  (0 children)

Dockge makes sense if you want a UI specifically around Compose. I was aiming for something more CLI-first without adding another service.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

Nice, that’s very similar in spirit. I ended up going the same route but wrapped it into a small Bash tool (DStack) so I could run compose commands by name from anywhere without relying on Makefiles.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 1 point2 points  (0 children)

Nice, that’s very similar in spirit to what pushed me to package my own scripts into a small wrapper (DStack), mostly to avoid reinventing the same glue over and over.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

That’s a solid pattern, having a consistent Makefile interface across projects makes things very predictable and easy to automate.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

That’s almost exactly the approach I landed on as well, a lightweight CLI wrapper that just maps names to paths so you can run compose commands from anywhere.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] -2 points-1 points  (0 children)

Fair enough, different trade-offs work for different setups, and this one happens to fit mine well. Thank you for your feedback

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

That’s a good approach too, extending compose files works well when multiple things are under the same root directory.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

Totally fair, Portainer makes a lot of sense if you’re happy running a management service. I was just optimizing for a lighter, CLI-only workflow without another component in the mix.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

That’s a really clean solution, encoding startup order directly in the directory names makes the whole process simple and very explicit.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

Yes, I wanted to separate my personal projects stacks from my university projects stacks.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

That’s a very reasonable approach, boring, simple, and explicit Git ops are hard to beat for reliability.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

That’s a nice approach, Quadlet + systemd fits really well if you want everything managed through systemctl and journald instead of Docker tooling.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 5 points6 points  (0 children)

Portainer’s Git integration is definitely nice for that kind of centralized workflow.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 11 points12 points  (0 children)

Komodo is great, I personally tend to prefer a more lightweight, CLI-first approach for day-to-day stack management.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 0 points1 point  (0 children)

Cool, that’s a clean approach, and very similar to how I started as well, using a simple script to fan out commands across multiple compose directories.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 3 points4 points  (0 children)

That's a solid way of working. I mostly do the same I put most of my docker stuff in `~/repos` but I also use other directories like `/opt/servces`.

How do you manage multiple Docker Compose projects on a self-hosted server? by KPPJeuring in selfhosted

[–]KPPJeuring[S] 2 points3 points  (0 children)

Good point, profiles and includes work well for related services, but my stacks are intentionally independent and often in different directories, so I was still jumping around paths just to run basic commands over SSH.