Include doesn't work like I'd like

a year ago by sabreW4K3 to c/docker

I have a few seperate docker compose files and I thought to make my life easier, I'd just include them in another file and that should work like the project manager. But it keeps trying to take ownership. Is there anyway to avoid that so they're all treated as separate autonomous docker files?

HelloRoot 1 point a year ago

docker compose

path: 0 17359245, hotness: undefined, score: 1, children: 3
sabreW4K3 1 point a year ago

Yep, that's what I'm talking about

path: 0 17359245 17359320, hotness: undefined, score: 1, children: 2
HelloRoot 1 point a year ago

My bad I misread. I don't think you can include multiple compose files into one in a clean way.


There are profiles which you could look into but I am not sure whether that would work like you want.

services:
  app1:
    profiles: ["project1"]
    ...

  app2:
    profiles: ["project2"]
    ...
docker compose --profile project1 up

Personally I use dokploy, but thats a whole big ass project. It can manage multiple compose files (among many other features). https://github.com/Dokploy/dokploy

Maybe look for a more minimal alternative. Like https://github.com/beanworks/dcm

Actually I just remembered hearing good things about https://github.com/louislam/dockge

path: 0 17359245 17359320 17365656, hotness: undefined, score: 1, children: 1
sabreW4K3 2 points a year ago

Thank you. Will look into dockge for sure.

path: 0 17359245 17359320 17365656 17366231, hotness: undefined, score: 2, children: 0
docker
docker

@programming.dev

login for more options
1479
100
12

go to feed...