Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live jobs discovery from docker labels #57

Open
mathroc opened this issue Oct 23, 2018 · 5 comments
Open

Live jobs discovery from docker labels #57

mathroc opened this issue Oct 23, 2018 · 5 comments

Comments

@mathroc
Copy link

mathroc commented Oct 23, 2018

It would be nice to discover jobs looking at container and services tags (à la traefik)

eg, in a docker-compose file :

labels:
  - ofelia.schedule: "@hourly"
  - ofelia.command: "touch /tmp/example"

it could support job-exec and job-service-run (once #49 is merged) or maybe a job-service-exec style

this would make it much easier to work with as you wouldn't have to give access to the container running ofelia or its configuration to the user running app containers or stacks

the idea come from traefik and https://github.com/vfarcic/docker-flow-cron but this project is not ready nor very active

@Nightbr
Copy link

Nightbr commented Dec 7, 2018

Awesome feature! I'm just thinking of this when I had to change my config file because my container changes it's name...

With label, it will be easily flexible and reusable! Totally need this feature ❤️

@klingac
Copy link

klingac commented May 29, 2019

This feature would be awesome.
Trane9991's fork ( mentioned in #66 (comment) ) has this implemented.

@G-regL
Copy link

G-regL commented Nov 7, 2019

This is indeed a great feature, and it works wonderfully with Traefik.
The one thing I'm noticing that's different is that it's looking at container labels, instead of service labels, and when a service updates itself, Ofelia isn't picking up the new containers that come from that, so you'd need to restart it every time you update a service.

Is it possible for Ofelia to periodically poll Docker for labels, instead of just doing it once at startup?

@4n70w4
Copy link

4n70w4 commented Apr 17, 2020

Manual restart ofelia every time after changing containers labels is a big sadness.

@taraspos taraspos changed the title configure with docker labels Live jobs discovery from docker labels Sep 20, 2020
@bertbesser
Copy link

Very related to #137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants