Skip to content

Multiple ini files #377

@raaphhh

Description

@raaphhh

Hi there,

I was wondering if it was possible to use the INI-style way of declaring jobs but have the jobs organized in different .ini files.

I'm using docker-compose but I don't like the idea of having the jobs declared in the docker-compose files as labels, I'd rather have them living independently.

My idea was to have a single .ini file per service, and i was wondering if it was something that was possible with ofelia today or that could be possible in the future.

services/
├── ofelia/
│   ├── config/
│   │   ├── main.ini
│   │   └── jobs/
│   │       ├── service1.ini
│   │       ├── service2.ini
│   │       └── ...
│   └── docker-compose.yml
├── service1/
├── service2/
└── ...

Another idea was this approach :

services/
├── ofelia/
│   ├── config/
│   │   └── main.ini
│   └── docker-compose.yml
├── service1/
│   ├── config/
│   │   └── jobs/
│   │       └── service1.ini
│   └── docker-compose.yml
├── service2/
│   ├── config/
│   │   └── jobs/
│   │       └── service2.ini
│   └── docker-compose.yml
└── ...

But not the best in my opinion, I rather have a clear view of all the jobs I have and each service has jobs by looking in the /jobs folder in the ofelia directory, seems more logical to me.

Really interested to hear if there is a solution for that and/or what you think about this approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions