Skip to content

Add automatic detection of docker-compose files for trigger #553

Open
@Mascherino

Description

@Mascherino

I currently have 70+ containers running and I really don't want to create a seperate docker-compose trigger for each of them.
A way to have WUD automatically detect the docker-compose file for a container based on the container labels would be really nice to have.

My folder structure currently looks something like this:

docker
├── authelia
│   ├── config
│   ├── docker-compose.yml
│   └── secrets
├── backrest
│   ├── cache
│   ├── config
│   ├── data
│   └── docker-compose.yml
├── beszel
│   ├── beszel_data
│   └── docker-compose.yml
└── it-tools
    └── docker-compose.yml
...

Since every container created with docker compose up should have the com.docker.compose.project label which contains the folder name (in lowercase) where the docker-compose.yml is located, you could mount the folder containing all your subfolders (docker in my case), and tell WUD to lookup the docker-compose files by itself.

When the docker-compose trigger is executed, WUD looks up the compose file location with the container label, and checks if a corresponding folder exists in the mounted folder. If it exists, the docker-compose.yml inside is checked if it actually contains the image from the container (just to make sure there are no false positives and the wrong file gets updated), and is then updated with the already existing methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions