docker-crontab
docker-crontab copied to clipboard
Default to current project when using docker-compose
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