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

docker-compose / scaled container support #18

Open
willfarrell opened this issue Jan 13, 2017 · 2 comments
Open

docker-compose / scaled container support #18

willfarrell opened this issue Jan 13, 2017 · 2 comments

Comments

@willfarrell
Copy link

Would be nice to be nice to be able to trigger a script on all instances of a container. Using docker-compose you can end up with docker_nginx_1, docker_nginx_2, ..., docker_nginx_N after scaling nginx up.

Proposal:

Add in the use of

[job-exec "job-executed-on-running-container"]
schedule = @hourly
compose-project= docker
container = nginx
command = /etc/init.d/nginx reload

As a dynamic shortcut for:

[job-exec "job-executed-on-running-container"]
schedule = @hourly
container = docker_nginx_1
command = /etc/init.d/nginx reload

[job-exec "job-executed-on-running-container"]
schedule = @hourly
container = docker_nginx_2
command = /etc/init.d/nginx reload

Where compose-project is -p, --project-name NAME Specify an alternate project name (default: directory name).

Thought?

@mcuadros
Copy link
Owner

Yes, looks interesting a PR is welcome

@willfarrell
Copy link
Author

If I knew go, I totally would. Maybe a future side project when I can find the time.

jsixface pushed a commit to jsixface/ofelia that referenced this issue Sep 26, 2023
…/github.com/docker/docker-24.0.2incompatible

Bump github.com/docker/docker from 23.0.5+incompatible to 24.0.2+incompatible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants