docker-crontab icon indicating copy to clipboard operation
docker-crontab copied to clipboard

Default to current project when using docker-compose

Open kgiglia opened this issue 5 years ago • 0 comments

We use this image alongside a couple others via docker-compose, and our config for every job currently has to include "project": "project-name".

Could project default to the name of the project that the Cron container is a part of?

I know the project name can be determined with something like the following from within the Cron container:

docker inspect -f '{{index .Config.Labels "com.docker.compose.project"}}' $HOSTNAME

kgiglia avatar Sep 01 '20 04:09 kgiglia